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.
Files at revision 5:a0bb17c379ce
Name | Size | Actions |
---|---|---|
[up] | ||
AnalogFilterInterface.cpp | 344 | Revisions Annotate |
AnalogFilterInterface.h | 772 | Revisions Annotate |
AnalogInFiltered.cpp | 789 | Revisions Annotate |
AnalogInFiltered.h | 934 | Revisions Annotate |
AutoScale.cpp | 1350 | Revisions Annotate |
AutoScale.h | 882 | Revisions Annotate |
Button.cpp | 541 | Revisions Annotate |
Button.h | 507 | Revisions Annotate |
LowPassFilter.cpp | 489 | Revisions Annotate |
LowPassFilter.h | 798 | Revisions Annotate |
SimpleButtonDecoder.cpp | 1871 | Revisions Annotate |
SimpleButtonDecoder.h | 1802 | Revisions Annotate |
USBDevice.lib | 65 | Revisions Annotate |
USBJoystick.cpp | 6521 | Revisions Annotate |
USBJoystick.h | 4421 | Revisions Annotate |
main.cpp | 8393 | Revisions Annotate |
mbed-rtos.lib | 65 | Revisions Annotate |
mbed.bld | 65 | Revisions Annotate |