ras-marques / ImmersiveGloves

MIT License
24 stars 0 forks source link

Find where's the limit on the data received by the ImmersiveGloves driver #7

Closed ras-marques closed 11 months ago

ras-marques commented 11 months ago

I am not sure what is happening, but the driver can only get up to around 10 bytes. I'm not sure if this is an issue of the lighthouse driver or the hooking that I'm using.

A workaround could be multiplexing ring and pinky finger data with joystick data and whatever buttons I may use by encoding half the resolution of the data on each value and using the MSB to signal the type of data being sent, but this is not very elegant.

If the limitation is on the lighthouse driver there's nothing I can do. Maybe it's just the Tundra tracker that does not send more than 10 bytes. If that's the case then either use it as a battery and tracker and send everything wirelessly using my own solution or just do the workaround above and sacrifice resolution and update rate - the workaround should not be a big deal, but must check.

ras-marques commented 11 months ago

Fixed by https://github.com/ras-marques/ImmersiveGloves/commit/e122cd164606c299b964297d38668cd127045159. The issue was with the header of the SPI packet, length was not updated before and 20 or so bits or added to the packet, that's why the latest ones were not sent. Thankfully this was just a mistake on my part.