1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=utf-8">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WPADGetMplsCalibration</title>
10</head>
11
12<body>
13
14<h1>WPADGetMplsCalibration</h1>
15
16
17<h2>Syntax</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22#define WPAD_CHAN0               0
23#define WPAD_CHAN1               1
24#define WPAD_CHAN2               2
25#define WPAD_CHAN3               3
26
27typedef struct WPADMpls
28{
29    f32 pitch_zero;
30    f32 pitch_scale;
31    f32 yaw_zero;
32    f32 yaw_scale;
33    f32 roll_zero;
34    f32 roll_scale;
35    s32 degrees;
36} WPADMpls;
37
38void WPADGetMplsCalibration( s32 chan, WPADMpls *high, WPADMpls *low );</code></pre>
39  </dd>
40</dl>
41
42<h2>Arguments</h2>
43<TABLE class="arguments" border="1">
44  <TBODY>
45    <TR>
46      <TD><code><b><i>chan</i></b></code></TD>
47      <TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
48    </TR>
49    <TR>
50      <TD><CODE><b><i>high</i></b></CODE></TD>
51      <TD><code>Buffer where calibration values for fast movements of the Wii MotionPlus are copied.</code></TD>
52    </TR>
53    <TR>
54      <TD><CODE><b><i>low</i></b></CODE></TD>
55      <TD><code>Buffer where calibration values for low-velocity movements of the Wii MotionPlus are copied.</code></TD>
56    </TR>
57  </TBODY>
58</TABLE>
59<h2>Return Values</h2>
60<p>
61None.
62</p>
63<H2>Description</H2>
64<p>
65<font color="red"><b>This function has been removed from use. Please use the KPAD library if you are using the Wii MotionPlus.</b></font>
66</p>
67<p>
68Gets the calibration values for the specified Wii Remote channel's Wii MotionPlus.
69</p>
70<p>
71The <code>WPADMpls</code> structure members have the following meanings.
72</p>
73<table class="arguments" border="1">
74<tr>
75<td><code>pitch_zero</code></td>
76<td>At-rest value in the pitch direction.</td>
77</tr>
78<tr>
79<td><code>pitch_scale</code></td>
80<td>Difference between the value measured when the Wii MotionPlus is rotated around the pitch axis at a velocity of <span class="argument">degrees</span> (dps) and the value measured when the MotionPlus is at rest around the pitch axis (that is, the relative change versus the at-rest value).</td>
81</tr>
82<tr>
83<td><code>yaw_zero</code></td>
84<td>At-rest value in the yaw direction.</td>
85</tr>
86<tr>
87<td><code>yaw_scale</code></td>
88<td>Represents the difference between the value measured when the Wii MotionPlus is rotated around the yaw axis at a velocity of <span class="argument">degrees</span> (dps) and the value measured when the MotionPlus is at rest around the yaw axis (that is, the relative change versus the at-rest value).</td>
89</tr>
90<tr>
91<td><code>roll_zero</code></td>
92<td>At-rest value in the roll direction.</td>
93</tr>
94<tr>
95<td><code>roll_scale</code></td>
96<td>Represents the difference between the value measured when the Wii MotionPlus is rotated around the roll axis at a velocity of <span class="argument">degrees</span> (dps) and the value measured when the MotionPlus is at rest around the roll axis (that is, the relative change versus the at-rest value).</td>
97</tr>
98<tr>
99<td><code>degrees</code></td>
100<td>The rotation speed used when the scale value was obtained for each direction. It is in units of degrees per second.</td>
101</tr>
102</table>
103
104<h2>See Also</h2>
105<p>
106<a href="./WPADSetMplsCalibration.html"><code>WPADSetMplsCalibration</code></a><br>
107</p>
108
109<H2>Revision History</H2>
110<P>
1112009/07/27 Explained that this is obsolete starting with SDK 3.3<br> 2008/09/30 Revised explanation of <CODE>scale </CODE>in each direction<br> 2008/07/18 Initial version<br>
112</P>
113
114<hr><p>CONFIDENTIAL</p></body>
115</html>
116