KPADReviseAcc

Syntax

#include <cafe/pads/kpad/kpad.h>

f32 KPADReviseAcc( Vec *acc );

Parameters

acc Pointer to the vector that will be subjected to angular correction.

Return Values

The angle of rotation of the vector passed in the argument, when rotated counterclockwise as defined when facing to the positive X-direction in the Nunchuk motion sensor's coordinate system. In units of degrees.

Description

This function corrects any user-specified vector in the same manner as the correction performed when KPADSetReviseMode is turned on.

NOTE:
To get the sine or cosine of the correction angle, convert a (0,1,0) or (0,0,1) vector with the KPADReviseAcc function.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

See Also

KPADSetReviseMode
KPADGetReviseAngle

Revision History

2013-05-08 Automated cleanup pass.
2007-05-21 Initial version.


CONFIDENTIAL