WPADGetMplsCalibration

Syntax

#include <revolution/wpad.h>

#define WPAD_CHAN0               0
#define WPAD_CHAN1               1
#define WPAD_CHAN2               2
#define WPAD_CHAN3               3

typedef struct WPADMpls
{
    f32 pitch_zero;
    f32 pitch_scale;
    f32 yaw_zero;
    f32 yaw_scale;
    f32 roll_zero;
    f32 roll_scale;
    s32 degrees;
} WPADMpls;

void WPADGetMplsCalibration( s32 chan, WPADMpls *high, WPADMpls *low );

Arguments

chan One of the WPAD_CHANn values.
high Buffer where calibration values for fast movements of the Wii MotionPlus are copied.
low Buffer where calibration values for low-velocity movements of the Wii MotionPlus are copied.

Return Values

None.

Description

This function has been removed from use. Please use the KPAD library if you are using the Wii MotionPlus.

Gets the calibration values for the specified Wii Remote channel's Wii MotionPlus.

The WPADMpls structure members have the following meanings.

pitch_zero At-rest value in the pitch direction.
pitch_scale Difference between the value measured when the Wii MotionPlus is rotated around the pitch axis at a velocity of degrees (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).
yaw_zero At-rest value in the yaw direction.
yaw_scale Represents the difference between the value measured when the Wii MotionPlus is rotated around the yaw axis at a velocity of degrees (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).
roll_zero At-rest value in the roll direction.
roll_scale Represents the difference between the value measured when the Wii MotionPlus is rotated around the roll axis at a velocity of degrees (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).
degrees The rotation speed used when the scale value was obtained for each direction. It is in units of degrees per second.

See Also

WPADSetMplsCalibration

Revision History

2009/07/27 Explained that this is obsolete starting with SDK 3.3
2008/09/30 Revised explanation of scale in each direction
2008/07/18 Initial version


CONFIDENTIAL