nn::hid::CTR::GyroscopeReader::SetAccReviseParam Member Function
void SetAccReviseParam(
f32 revisePower,
f32 reviseRange
);
| Name | Description | |
|---|---|---|
| in | revisePower | Weight of acceleration correction. Set a value from 0 to 1. The greater the value, the more strongly correction is applied. |
| in | reviseRange | Valid range for acceleration correction. This range of accelerometer values is centered around the acceleration of gravity, and correction is applied only to readings within this range. |
Sets the weight and enabled range for acceleration correction.
These settings are applied to all axes.
The value 1.0f is taken as equal to the magnitude of gravitational acceleration.
In other words, if you specify 0.4f, then correction is applied to all accelerometer values in the range between 0.6f and 1.4f.
CONFIDENTIAL