VPADSetGyroDirectionMag

Syntax

#include <cafe/vpad.h>

void VPADSetGyroDirectionMag( s32 chan, f32 mag );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
mag Magnitude applied to the angular velocity used to calculate the 3D attitude.

Return Values

None.

Description

Sets the magnitude to be applied to the angular velocity value that is used to internally calculate the dir member of the VPADStatus structure obtained by the VPADRead function for the specified channel's DRC. For example, if mag is set to 2.0f and the attitude is rotated 90 degrees, the dir member of the VPADStatus is calculated as an attitude rotated 180 degrees.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

Revision History

2013/05/08 Automated cleanup pass.
2011/03/30 Initial version.


CONFIDENTIAL