nn::hid::CTR::GyroscopeStatus Structurestruct GyroscopeStatus
{
nn::math::VEC3 speed;
nn::math::VEC3 angle;
Direction direction;
};
This structure maintains the data acquired from the gyro sensor.
The GyroscopeStatus structure has three members: speed, angle, and direction. The speed and angle members are defined as nn::math::VEC3 types. In the VEC3 values, the x-, y-, and z-components correspond to the pitch, yaw, and roll axes respectively.
The speed member holds the angular speed around each axis. A value of 1.0 is taken as equal to 360 dps (degrees per second). The angle member holds the angle around each axis. A value of 1.0 is taken as equal to 360 degrees. The direction member holds the 3D attitude expressed as a 3x3 matrix.
| speed | The angular speed around each axis. A value of 1.0 is taken as equal to 360 dps. |
|
|---|---|---|
| angle | The angle of rotation around each axis, calculated by integrating the angular speed around that axis. A value of 1.0 is taken as equal to 360 degrees. |
|
| direction | The 3D attitude of the gyro sensor. |
CONFIDENTIAL