1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
7<title>KPADReviseAcc</title>
8</head>
9
10<body>
11
12<h1>KPADReviseAcc</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/kpad.h&gt;
17
18f32 KPADReviseAcc( Vec *acc );
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<TABLE class="arguments" border="1" >
23  <TBODY>
24    <TR>
25<TH>acc</TH>
26<TD>Pointer to the vector that will be subjected to angular correction.</TD>
27    </TR>
28  </TBODY>
29</TABLE>
30
31<h2>Return Values</h2>
32<p>The angle of rotation of the vector passed in the argument, when rotated counterclockwise as defined when facing to the positive X-direction in the Nunchuk motion sensor's coordinate system. In units of degrees.</p>
33
34<H2>Description</H2>
35<p>
36This function corrects any user-specified vector in the same manner as the correction performed when <a href="./KPADSetReviseMode.html"><code>KPADSetReviseMode</code></a> is turned on.<br><br><STRONG>Note:</STRONG> To get the sine or cosine of the correction angle, convert a (0,1,0) or (0,0,1) vector with the <a href="./KPADReviseAcc.html"><code>KPADReviseAcc</code></a> function.
37</p>
38
39<h2>See Also</h2>
40<p class="reference">
41<a href="./KPADSetReviseMode.html">KPADSetReviseMode</a>,
42<a href="./KPADGetReviseAngle.html">KPADGetReviseAngle</a>
43</p>
44
45<H2>Revision History</H2>
46<P>
472007/05/21 Initial version.<br>
48</P>
49
50<hr><p>CONFIDENTIAL</p></body>
51</html>
52