nn::hid::CTR::GyroscopeStatus Structure

Syntax

struct GyroscopeStatus
{
   nn::math::VEC3 speed;
   nn::math::VEC3 angle;
   Direction direction;
};

Description

Structure for storing the gyro information.

The gyro sensor yields readings for angular speed around the pitch, yaw, and roll axes. The values for each axis are stored in the KmplsStatus structure, which is obtained with the Read function. The GyroscopeStatus structure has three members: speed, angle and direction. The members speed and angle are defined as VEC3 values. 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.

Member Variables

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.

Revision History

2010/10/20
Initial version.

CONFIDENTIAL