KPADCalibrateDPD

C Specification

#include <revolution/kpad.h>
s32 KPADCalibrateDPD( s32 chan ) ;

Arguments

chan One of WPAD_CHANn values.

Return Values

Returns the number of objects captured by the DPD at the time this function is called. If the return value does not equal two, calibration was not performed.
If the return value is negative, the Wii Remote Control is not in a horizontal position or is being moved too much.

Description

This function sets the horizontal state of each Wii controller.
If this function is called when the Wii Remote Control is held horizontally and pointed at the sensor bar, the values for the pos and horizon member variables of the KPADStatus structure are calculated by treating this state as horizontal. This state doesn't affect the calculations of the acc member.
Using this function to reset can only occur when the Wii Remote Control is held horizontally and only two sensors on the sensor bar have been detected. You do not need to call this function unless the sensor bar is on a very unlevel on the TV set or the accelerometer values are off by a great deal. You do not need to call this function unless the sensor bar has a very unlevel set up by the TV or

See Also

Revision History

03/01/2006 Initial version.
06/19/2006 Changed tentative product name to official name.