nn::hid::CTR::GyroscopeReader::EnableAxisRotation Member Functionvoid EnableAxisRotation();
None.
Enables axial rotation.
When axial rotation is enabled, the rotation matrix specified by the nnhid::CTR::GyroscopeReader::SetRotationAxis function is used to perform a rotational transform on the sampling data, and the resulting values are output.
This processing allows you to handle the sensor readings as though the sensor is tilted within the CTR system.
If both axial rotation and acceleration correction are performed, you must be aware of the accelerometer settings. In such cases, the referenced AccelerometerReader and the gyro sensor must share the same settings for axial rotation. If you use the default AccelerometerReader and call the nn::hid::CTR::GyroscopeReader::EnableAxisRotation, nn::hid::CTR::GyroscopeReader::DisableAxisRotation, nn::hid::CTR::GyroscopeReader::SetAxisRotationMatrix or nn::hid::CTR::GyroscopeReader::ResetAxisRotationMatrix function, the SDK calls the function corresponding to the default nn::hid::CTR::AccelerometerReader and the same settings are propagated. But when you have specified an independent nn::hid::CTR::AccelerometerReader instance with the constructor, the application is responsible for ensuring that the same settings are propagated.
Note: If the axial rotation settings are different, acceleration correction might yield inappropriate results.
Initial value is disabled.
CONFIDENTIAL