Change the dev.read to read 13 bytes.
Then you will get one long packet with the T and R vector together.
This only works with a USB connection. Not the wireless dongle.
I've only tested this on a RPi3.
Raspberry Pi
Moderator: Moderators
Re: Raspberry Pi
Thank you! its working now! Do you have any documents so I can see how the byte-package looks like?
Re: Raspberry Pi
Each USB device tells exactly what it sends and how it sends it in its device descriptor. I print that at the beginning.
It's also useful to uncomment that
# print data
line. To see the various packets that are coming from the device.
On Windows, the software installs with an XML file (Base.xml) that describes the button packets, but it's easier just to press the button to see what comes out.
All the devices, currently have exactly the same 6DOF data.
There isn't much documentation available beyond that.
It's also useful to uncomment that
# print data
line. To see the various packets that are coming from the device.
On Windows, the software installs with an XML file (Base.xml) that describes the button packets, but it's easier just to press the button to see what comes out.
All the devices, currently have exactly the same 6DOF data.
There isn't much documentation available beyond that.
Re: Raspberry Pi
Hello its me again
the application is working now. Im really thankfull for the support! I have one question left. Does the Spacemouse enterprise have the same data exchange protocol (the 13 byte package)?

Re: Raspberry Pi
Yes, the SpaceMouse Enterprise has the same axis data format.
The buttons may be different.
Let us know what interesting things you are doing with the 3D mouse and an RPi.
The buttons may be different.
Let us know what interesting things you are doing with the 3D mouse and an RPi.
Re: Raspberry Pi
Hey John,
I've made a quick teach-in device for industrial robots from the 3d mouse. You can private message me if you want any further info
.
I've made a quick teach-in device for industrial robots from the 3d mouse. You can private message me if you want any further info
