Thomas Buck d58cf17e90 example implementation of using buttons for output axes | hace 3 años | |
---|---|---|
.gitignore | hace 8 años | |
COPYING | hace 8 años | |
README.md | hace 7 años | |
Saitek-X52-PPM.ino | hace 7 años | |
config.cpp | hace 8 años | |
config.h | hace 3 años | |
cppm.cpp | hace 8 años | |
cppm.h | hace 8 años | |
data.h | hace 8 años | |
events.h | hace 3 años | |
events_buttons.cpp | hace 8 años | |
events_cppm.cpp | hace 3 años | |
events_deadzone.cpp | hace 8 años | |
frsky.cpp | hace 8 años | |
frsky.h | hace 8 años | |
parser.cpp | hace 7 años | |
parser.h | hace 7 años | |
x52.cpp | hace 7 años | |
x52.h | hace 7 años |
This sketch allows connecting a Saitek X52 or Saitek X52 Pro to an Arduino with a USB Host Shield. It uses the USB_Host_Shield_2.0 Library.
!!Warning!!: This software has been written for the USB Host Shield library 2.0, Version 1.2.1. There have been some changes with the library for version 1.3.0 renaming symbols used by this project. I’ve made the required changes, but these are untested! If you have any problems, I’d suggest using an older version of the library and the code in this repository.
A CPPM signal is generated on a configurable pin and can be fed into a transmitter module or directly into a flight controller.
Using the Multi-Function-Display on the Joystick, every config option can be changed. These values can be stored on the EEPROM and will be loaded on every start.
I’m connecting the Arduino to the FrSky DHT module in my modified transmitter to control my Tricopter.
A modified (ie. non-inverted) FrSky Host Telemetry Port (D-Port) can be connected to the hardware serial port of the Arduino so the Telemetry data (link quality and voltages) will be displayed on the Multi-Function-Display of the joystick.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.