The expanses of WolfWings' land
scratched on the wall for all to see


May 5th, 2009
May 5th, 2009
May 5th, 2009
May 5th, 2009
May 5th, 2009

[User Picture]12:40 pm - Okay... the SixAxis/DS3 is a lot more sane now...
...but I need a little help, I just can't find any good way to pre-process the accelerometer/gyroscope data from the thing. qdot, you have any math in your back pocket somewhere? Specifics:

10-bit X/Y/Z accelerometer, data returned unsigned. 4G range, centered on 512. Lowest 2-3 bits flicker madly at rest on a table.

10-bit gyroscope, no idea if that's the right term but it's what everything calls it. Indicates how much rotational velocity the controller has around the axis that goes straight up through the face of the controller if it's set down on a table. Unknown exact velocity mapping, approximately 180 degrees rotation in 0.9-1.1 seconds just barely pegs the meter. Clockwise is lower, counterclockwise is higher.

I'd like to return full six axis results, if it's possible from these values? If a reduced set of values is the best we can do, that's fine too. Right now I have the HID Descriptor coded for -128 to +127, if someone thinks raising the range is useful, I can and will.

Since the Linux-USB list ignored my e-mail asking if it was the appropriate place for HID discussion and if there was anything I should know to make this patch more likely to get accepted (likely due to my name not looking real enough, I'd imagine) I'll just drop a patch on them, see what they say then. But I'd like the patch to be damn high quality, so I don't want to screw up the accelerometer handling if I can avoid it. :-)5 commentsLeave a comment
?

Log in

No account? Create an account