Ticket #13 (new enhancement)
Handling LSB in acceleration data
| Reported by: | anonymous | Owned by: | wic |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | libcwiid | Version: | 0.5.02 |
| Keywords: | Cc: | martin.wickman@… |
Description
As described here, there seems to be some precision data available which is not accounted for in cwiid and other api:s.
I've created a patch against 0.5.02 which adds that. I had to change the acc struct from int8 to int16 since the LSB's adds 2 bits (10 total). I also patched wmgui in the calibration code (which, imo, should be handled in libwiimote during connect). Anyway, the result is better range as discussed here.
patch -p0 < cwiid-lsb.diff
It seems to work, although the missing z-bit is a bit annoying and the calibration bits are somewhat a guesswork
Cheers,
/Martin, email in cc-field
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

