nn::hid::CTR::AccelerometerReader::SetOffset Member Function

Syntax

void SetOffset(
     s16 x,
     s16 y,
     s16 z
);

Arguments

Name Description
in x The x-component of the offset value.
in y The y-component of the offset value.
in z The z-component of the offset value.

Return Values

None.

Description

Sets the accelerometer offset value.

When offset is enabled, the specified values are subtracted from the sampling data before it is output.

By default all components are 0.

Revision History

2010/10/20
Initial version.

CONFIDENTIAL