nn::hid::CTR::GyroscopeReader::GyroscopeReader Constructor

Syntax

GyroscopeReader(
     AccelerometerReader * pAccelerometerReader = NULL,
     Gyroscope & gyroscope = GetGyroscope()
);

Arguments

Name Description
pAccelerometerReader
gyroscope
in pAccelerometrReader Specify a reference to an instance of AccelerometerReader to use the referenced AccelerometerReader output value as the basis for correction. NULL is passed as the default, in which case correction is based on the internally stored default AccelerometerReader.

Description

Constructor.

Initialize with the nn::hid::CTR::Initialize function before creating an instance. This configures required settings to start sampling. Note that a certain wait time is needed between generating the first instance and starting to sample.

Revision History

2010/10/20
Initial version.

CONFIDENTIAL