VPADSetGyroAccReviseParam

Syntax

#include <cafe/vpad.h>

void VPADSetGyroAccReviseParam( s32 chan, f32 revise_pw, f32 revise_range );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
revise_pw Weight used for acceleration correction. Set a value from 0 to 1 ( 0 < revise_pw <= 1 ). The greater the value, the more dramatically correction is applied.
A value of 0 should not be set for correct acceleration correction.
revise_range Valid range for acceleration correction. Correction calculations use acceleration sensor values in this range centered on gravitational acceleration. A value of 1.0f indicates the magnitude of gravitational acceleration. That is, if 0.4f is specified, acceleration sensor values that fit in the range between 0.6f and 1.4f are used in the correction calculation.

Return Values

None.

Description

Configures the level of acceleration correction 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

VPADGetGyroAccReviseParam
VPADInitGyroAccReviseParam

Revision History

2013/05/08 Automated cleanup pass.
2012/08/16 Added comments for the range of revise_pw.
2011/03/30 Initial version.


CONFIDENTIAL