nn::hid::CTR::AccelerometerReader::EnableAxisRotation Member Function

Syntax

void EnableAxisRotation();

Arguments

None.

Return Values

None.

Description

Enables axial rotation of the accelerometer.

When axial rotation is enabled, the rotation matrix specified by the SetRotationAxis function is used to perform a rotational transform on the sampling data, and the result is output.

This process can be used to treat the sensor in the CTR like it is positioned at a tilt.

When both Offset and Axial rotation are enabled, the offset transform is performed before the rotational transform.


CONFIDENTIAL