nn::hid::CTR::GyroscopeReader::SetDirectionMagnification Member Function
void SetDirectionMagnification(
f32 magnification
);
| Name | Description | |
|---|---|---|
| in | magnification | Scaling factor applied to the angular velocity used to calculate the 3D attitude. |
Sets the scaling factor to apply to the angular velocity used when calculating the direction member of the GyroscopeStatus structure, which is obtained by the Read and ReadLatest functions.
For example, if magnification is set to 2.0f and the CTR system is rotated 90 degrees, the direction member of the GyroscopeStatus structure is calculated as the system's attitude after a 180-degree rotation.
CONFIDENTIAL