![](/media/cache/profiles/ff450ba01b0ca2695d62525505dd80eb.jpg.50x50_q85.jpg)
HID Joystick - For use with X-Plane or other programs that can read HID JoySticks
Dependencies: USBDevice mbed-rtos mbed
Fork of JoyStick by
This is a simple Joystick HID that I use for xplane and a home build yoke + paddels, see this forum with the look and feel of it : http://forums.x-plane.org/index.php?showtopic=70041
The analog input are filtered with a LowPass IIR filter and the digital input's will be derived from the analog input and de-bounced.
The analog values are read at a 1Khz interval and to ensure we don't push the USB stack to much at a maximum rate of 20 updates/sec HID data is send over USB only if any values where changed. The JoyStick will send 16Bit analog values as opposite of 8 bit values that are normally used to increase accuracy of the whole system. This is well noticeable within x-plane!
The JoyStick uses the JoyStick copied from Wim Huiskamp and modified to suite my needs and the MBED RTOS libraries for reading analog inputs, sending debug data over USB and sending HID data, 3 threads in total.
Revisions of USBJoystick.cpp
Revision | Date | Message | Actions |
---|---|---|---|
4:2cc58c173de8 | 2016-03-10 | expanded to read more digital ports for my new panel | File Diff Annotate |
2:ae7a31a3c618 | 2013-08-30 | Better PushButton handling | File Diff Annotate |
0:33bc88c4ab31 | 2013-08-28 | Initial release with RTOS | File Diff Annotate |