Ticket #95 (new defect)
processing low/high speed of gyro
| Reported by: | emris | Owned by: | dsmith |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | libcwiid | Version: | 0.6.00 |
| Keywords: | Cc: | spma@… |
Description
the gyros have two distinct speed-modes that need to be taken account of. see http://wiibrew.org/wiki/Wiimote/Extension_Controllers#Wii_Motion_Plus
The factor between low and high speed seems to be 4, so the code to be added should read like this:
if (!data[3]&0x02) { motionplus_mesg->angle_rate[CWIID_PHI]*=4;}
if (!data[4]&0x02) { motionplus_mesg->angle_rate[CWIID_THETA]*=4;}
if (!data[3]&0x01) { motionplus_mesg->angle_rate[CWIID_PSI]*=4;}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

