nn::hid::CTR::GyroscopeReader::SetDirectionMagnification Member Function

Syntax

void SetDirectionMagnification(
     f32 magnification
);

Arguments

Name Description
in magnification Magnitude applied to the angular velocity used to calculate the 3D attitude.

Return Values

None.

Description

Sets the angular speed value that will be used when internally calculating direction in the GyroscopeStatus structure, which is obtained by the Read function.

For example, if magnification is set to 2.0f and the attitude is rotated 90 degrees, the direction member of the GyroscopeStatus structure is calculated as a 180-degree rotation in attitude.


CONFIDENTIAL