Open Arise opened 8 years ago
Hey, sorry for the sparse Readme. I just updated it with a few comments on the current state of the mapping. In general the mapping is still in progress. The idea is that since there are no "switches" on an xbox controller (as you would have on a std RC), the buttons on the xbox controller can be mapped to RC ppm values via a state machine. It's flexible to change the button mappings as desired. The first 4 channels of the ppm sum are reserved for the two sticks, and the other 4 channels (if using an 8 ch receiver) would be available for anything else. The PX4 firmware expects a main mode switch (manual, assist, auto) and a submode switch (altitude assist, position assist), which would leave two other ppm sum channels available for other things (eg., one for failsafe, one for offboard). This work is still in progress, and I'm not done working through the cases, but you should get the idea.
Regarding the location of the rpi, the idea is to use the rpi on the ground with the xbox controller. For onboard rpi flight, I'd look at Emlid's Navio stack. Most of the source code is open source. For this project the sole purpose was to be able to utilize a xbox remote in place of a standard RC controller (using a standard ppm RF transmitter/receiver). The other option is to generate a wifi connection between the ground controller and the onboard computer, and send mavlink messages -- but you'll be limited by the range of the wifi (not what I wanted here).
Hope that helps!
Not really bugs, but more like a couple of questions.
How do you connect the xbox controller with the rpi? Through cable or over wifi usb stick?
Not sure from the readme, but there is:
Buttons are mapped as follows:
X:
Y:
A:
B:
Left button:
Right button:
But I dont get where they are mapped to. Is that some text missing, or an image?
Third, you are keeping the rpi and the xbox controller and the transmitter with you on the ground?
I was thinking to use only the Xbox 360 controller and to connect it over USB Wifi to the RPI, but the RPI should stay on the drone, and send the PPM signal to the flight controller (a naze32).