ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.68k stars 2.33k forks source link

SITL XPlane DRef Mapping for Axis 7, 8. #3346

Open jllancaster opened 1 month ago

jllancaster commented 1 month ago

Issue details

With X-Plane 12 and DREF mapping for SITL XPlane, the simulation code only seems to be looking for joystick axis numbers 1-6; however, some joysticks axes such as roll are assigned as axis 7 and axis 8 by X-Plane. Is it possible add support for joysticks using axis 7 and 8? From Discord post from another user below:

"Update on my issues. First, I got the joystick to work with Mission Planner and X-Plane. X-Plane 12 maps your joystick(s) in an array sim/joystick/joystick_axis_values[500]. If it is not mapped to axis[1 to 6], it will never work in Mission Planner. I did 3 X-Plane 12 installations on 3 different computers and they all had different axis mapped for my single Logitech Extreme 3D Pro joystick. By looking at the Mission Planner X-Plane simulation code, it's looking for the raw axis values packets which only has axis[1 to 6] and 2 buttons. If your joystick is mapped to other axis, the raw axis values will be stuck at a fixed value at least that's what it did for me."

Version

MP 1.3.81

Platform

[ ] All [ ] AntennaTracker [ ] Copter [ x ] Plane [ ] Rover [ ] Sub

Airframe type

SITL Plane

Hardware type

NA

Logs

NA