#include <cafe/vpad.h>

void VPADSetGyroMagReviseParam( s32 chan, f32 revise_pw, f32 play_angle );


chan Controller number. 0 for DRC1 and 1 for DRC2.
revise_pw Weight used for attitude correction using magnetometer. Set a value from 0 to 1. The greater the value, the more correction is applied.
The default value is 0. In this case, the weight for attitude correction is calculated automatically based on the movement of DRC.
(If the DRC moves greater, the weight becomes bigger.)
play_angle Play angle for attitude correction. Sets a value, equating 360.0f to 360 dps.
The default value is 0.0f.

Return Values



Configures the level of attitude correction using magnetometer for the specified channel's DRC. These settings are applied to all axes.

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


Revision History

2015/04/09 Fixed the description of playAngle.
2013/08/20 Initial version.