nn::hid::CTR::GyroscopeStatus Structure

Syntax

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

Description

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.

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