New project to control Hexy via a PS3 controller is ready for the prime-time.
Due to the interesting way the SixAxis controller uses the Bluetooth interface, it must be connected to the PC via a USB cable, or you can’t open a serial port to Hexy. I’ll go into some more detail about the connection configuration and how the code works in a post on my blog (with video) in the near future.
If you run PoMoCo_demo.py, the SixAxis code uses the binary communication profile as developed by the quite excellent michal. So if you haven’t updated your Servotor32 on Hexy, it won’t work. The SixAxis.py code in the PoMoCo regular GUI uses the ASCII interface, but this limits the update rate of the servos.
Control is as follows:
Left analogue stick: Move Hexy forwards, backwards, left and right[/]
Right analogue stick: Rotate Hexy, left/right axis only[/]
L2/R2: Turn Hexy’s head[/]
L3: (Binary only) If pressed the update rate of the servos is increased fourfold, e.g. sprint feature[/]
Hopefully this should work for other people, please do come back with comments/ questions. Code should be commented.