nn::hid::CTR::AccelerometerReader::SetOffsetFromBaseStatus Member Function

Syntax

void SetOffsetFromBaseStatus(
     AccelerometerStatus baseAccelerometerStatus
);

Parameters

Name Description
in baseAccelerometerStatus Accelerometer value to take as indicating horizontally level status.

Return Values

None.

Description

Sets the accelerometer offset value.

When offset is enabled, this function sets the offset value such that subtracting the offset from the accelerometer value specified here yields "horizontally level" readings. The same offset is then subtracted from all sampling data before the sampling data is output.

Revision History

2010/10/20
Initial version.

CONFIDENTIAL