nn::hid::CTR::GyroscopeReader::SetAccReviseParam Member Function
void SetAccReviseParam(
f32 revisePower,
f32 reviseRange
);
| Name | Description | |
|---|---|---|
| in | revisePower | Weight used for acceleration correction. Set a value between 0 and 1. The greater the value, the more dramatically correction is applied. |
| in | reviseRange | Valid range for acceleration correction. The correction calculations are made using this range of accelerometer values, centered around the gravitational acceleration. |
Sets the extent of acceleration correction.
These settings are applied to all axes.
The value 1.0f is the magnitude of gravitational acceleration.
In other words, if 0.4f is specified, then accelerometer values in the range between 0.6f and 1.4f are used in the correction calculation.
CONFIDENTIAL