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

Specifies the offset value for the accelerometer.

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

In the default setting all are 0.


CONFIDENTIAL