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 http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>KPADStartMplsCalibration</title>
9</head>
10
11<body>
12
13<h1>KPADStartMplsCalibration</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/kpad.h&gt;
18
19void KPADStartMplsCalibration( s32 chan );
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26      <TH>chan</TH>
27      <TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</td>
28    </TR>
29  </TBODY>
30</TABLE>
31
32<h2>Return Values</h2>
33<p>None.</p>
34
35<H2>Description</H2>
36<p>
37Performs at-rest (zero point) calibration for the specified channel's Wii MotionPlus. This function starts calibration when called. Because the calibration process is updated inside the <a href="./KPADRead.html"><code>KPADRead</code></a> function, be sure to call this function every frame.
38</p>
39<p>
40The calibration process ends when the Wii MotionPlus value stabilizes. The degree of stability is evaluated in three steps. At first, the Wii MotionPlus is treated as stable even if slightly unstable. Ultimately, it is viewed as stable if the controller is at rest (has a rotational velocity of 5.4 dps or less). To find out the current degree of stability, use the return value of the <a href="./KPADWorkMplsCalibration.html"><code>KPADWorkMplsCalibration</code></a> function. In addition, if the stability at that stage is too high, a hardware zero-point reset is executed.
41</p>
42
43<h2>See Also</h2>
44<p class="reference">
45<a href="./KPADWorkMplsCalibration.html"><CODE>KPADWorkMplsCalibration</CODE></a><BR> <a href="./KPADStopMplsCalibration.html"><CODE>KPADStopMplsCalibration</CODE></a><BR> <a href="./KPADRead.html"><CODE>KPADRead</CODE></a>
46</P>
47
48<H2>Revision History</H2>
49<P>
502008/12/04 Initial version.
51</P>
52
53<hr><p>CONFIDENTIAL</p></body>
54</html>