carl-anders / slimevr-wrangler

Use Joycons as SlimeVR trackers with this middleware application
Apache License 2.0
121 stars 15 forks source link

[WIP] Pull quaternions from joycons #40

Open kitlith opened 9 months ago

kitlith commented 9 months ago

This isn't suitable for immediate merging. The new input report type, etc, should probably be done in joycon-rs, we might want to have a switch between the existing implementation and this one, etc.

the rotations are at least coherent, though that doesn't rule out subtle issues in my parsing code.

The output is kinda poor compared to the previous implementation, tbh, but there exists a possibility that we can build a filter on top of this that takes advantage of the fact that we get absolute rotations (making missing packets less bad) and timestamps.