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>KPADCalibrateDPD</title> 8</head> 9 10<body> 11 12<h1>KPADCalibrateDPD</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <revolution/kpad.h> 17 18s32 KPADCalibrateDPD( s32 chan ); 19</pre></dd></dl> 20 21<h2>Arguments</h2> 22<TABLE class="arguments" border="1" > 23 <TBODY> 24 <TR> 25<TH>chan</TH> 26<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 27 </TR> 28 </TBODY> 29</TABLE> 30 31<h2>Return Values</h2> 32<p> 33Returns the number of objects captured by the DPD when this function is called. If the return value is not 2, calibration has not been performed. If the return value is negative, the Wii Remote is not in a horizontal position or is being moved too much. 34</p> 35 36<H2>Description</H2> 37<p> 38This function sets the horizontal state of each Wii Remote. If it is called when the Wii Remote is held horizontally and pointed at the Sensor Bar, the values for the <SPAN class="argument">pos</SPAN> and <SPAN class="argument">horizon</SPAN> member variables of the <a href="./KPADStatus.html"><CODE>KPADStatus</CODE></a> structure will be calculated by treating this state as horizontal. The state does not affect the calculations of the <SPAN class="argument">acc</SPAN> member. This function is used for reset only when the Wii Remote is held horizontally and when only two sensors on the Sensor Bar are detected. The function does not have to be called, except when the Sensor Bar placed on the TV set is extremely uneven or the accelerometer values are significantly off. 39</p> 40 41<h2>See Also</h2> 42<P>None.</P> 43 44<H2>Revision History</H2> 45<P> 462006/06/19 Changed the product name from tentative to official.<br>2006/03/01 Initial version.<br> 47</P> 48 49<hr><p>CONFIDENTIAL</p></body> 50</html>