VPADStartGyroMagRevise

Syntax

#include <cafe/vpad.h>

void VPADStartGyroMagRevise( s32 chan );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.

Return Values

None.

Description

Starts the attitude correction using magnetometer. The base attitude is the dir member in the VPADStatus when this function is called. After this function is called, at first, the internal magnetometer calibration is executed automatically. Actual attitude correction using magnetometer works after the calibration is finished.

This function has to be called after the user holds the DRC at the correct position to start gameplay.
If you use the acceleration correction simultaneously, do not call this function until the return value of VPADIsEnableGyroAccRevise becomes stable.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

See Also

VPADIsStartedGyroMagRevise
VPADStopGyroMagRevise

Revision History

2013/08/20 Initial version.


CONFIDENTIAL