-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal workings #2
Comments
That's the serial protocol that the legacy device speaks (the one we're adapting). If you're making your own it's not really relevant to you. You'll be reading the data from whatever sensors your device has instead. |
Alright, thank you for that information. |
The translations and rotations are 16-bit signed values (though only -350..+350 range is used I think), one for each axis. Buttons are one bit per button, though not all of them are actually used. |
Awesome, thanks for the answer 😀 |
They are absolute (despite the fact that the report descriptor says they're relative). |
I'm trying to adapt this software to a DIY spacemouse and was wondering if you could elaborate on the internal workings a bit more.
Looking at the source code,
descriptors.c
seems pretty clear to me. As far as I understand it, it defines the USB manufacturer, model and some other stuff.My understanding of
magellan.c
is the following:magellan-spacemouse/src/magellan.c
Lines 43 to 44 in acfac3b
tud_task()
function to do some USB-related stuffmagellan-spacemouse/src/magellan.c
Line 51 in acfac3b
magellan-spacemouse/src/magellan.c
Line 55 in acfac3b
magellan-spacemouse/src/magellan.c
Line 59 in acfac3b
magellan-spacemouse/src/magellan.c
Lines 66 to 131 in acfac3b
Thank you in advance 😀
The text was updated successfully, but these errors were encountered: