nn::hid::CTR::GyroscopeStatus Structurestruct GyroscopeStatus
{
nn::math::VEC3 speed;
nn::math::VEC3 angle;
Direction direction;
};
Structure for storing the gyro information.
Angular velocity in the pitch, yaw, and roll directions can be obtained from the gyroscopic rate sensors.
The values for each axis are stored in the KmplsStatus structure, which is obtained with the Read function.
The GyroscopeStatus structure has the members speed, angle and direction. The members speed and angle are defined as VEC3 type.
For the VEC3 type, x,y,z are the direction components pitch (x), yaw (y), and roll (z).
The speed member represents the angular velocity in each direction and stores a value where 1.0 corresponds to 360 dps (degrees per second).
The angle member represents the angle in each direction and stores a value where 1.0 corresponds to 360 degrees.
The direction member represents the 3D attitude expressed as a 3x3 matrix.
| speed | The angular velocity in each direction. The value 1.0 is 360 degrees. | |
|---|---|---|
| angle | The angle of rotation as the sum of the angular velocity in each direction. The value 1.0 is 360 degrees. | |
| direction | The 3D attitude of the gyro. |
CONFIDENTIAL