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

Syntax

void SetDirectionMagnification(
     f32 magnification
);

Arguments

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

Return Values

None.

Description

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 function.

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.

Revision History

2010/10/20
Initial version.

CONFIDENTIAL