ArduPilot / ArduPilot/MAVProxy

Can't get joystick to work with MAVProxy

Open
#637 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
595
Forks
773
Avg merge
2d 6h
Merged PRs (30d)
18

Description

I cannot get my Taranis joystick (which works fine with Mission Planner) to work with MAVProxy:

SIM_VEHICLE: Run ArduPlane
SIM_VEHICLE: "/home/anthony/git/ardupilot/Tools/autotest/run_in_terminal_window.sh" "ArduPlane" "/home/anthony/git/ardupilot/build/sitl/bin/arduplane" "-S" "-I0" "--home" "-35.363261,149.165230,584,353" "--model" "xplane" "--speedup" "1"
SIM_VEHICLE: Run MavProxy
SIM_VEHICLE: "mavproxy.py" "--master" "tcp:127.0.0.1:5760" "--out" "127.0.0.1:14550" "--out" "127.0.0.1:14551" "--map" "--console"
RiTW: Starting ArduPlane : /home/anthony/git/ardupilot/build/sitl/bin/arduplane -S -I0 --home -35.363261,149.165230,584,353 --model xplane --speedup 1
xterm: cannot load font "10x20"
xterm: cannot load font "-Misc-Fixed-bold-R-*-*-13-120-75-75-C-60-ISO8859-1"
xterm: cannot load font "-Misc-Fixed-medium-R-*-*-13-120-75-75-C-120-ISO10646-1"
xterm: cannot load font "-Misc-Fixed-bold-R-*-*-13-120-75-75-C-120-ISO10646-1"
xterm: cannot load font "-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1"
Connect tcp:127.0.0.1:5760 source_system=255
Loaded module console
Loaded module map
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from tcp:127.0.0.1:5760
MAV> module load joystick
MAV> pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
MAVProxy.modules.mavproxy_joystick: Failed to find matching joystick.

Then..

MAV> set moddebug 3
MAV> module unload joystick
MAV> Unloaded module joystick
module load joystick
MAV> MAVProxy.modules.mavproxy_joystick: Initializing pygame
MAVProxy.modules.mavproxy_joystick: Initializing commands
MAVProxy.modules.mavproxy_joystick: Loading joystick definitions
MAVProxy.modules.mavproxy_joystick: Looking for joystick definitions in /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/Logitech_WingMan_3D.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/carolbox-usb.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/cypress-spektrum.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/great-planes.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/logicool-f310.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/logitech-dual-action.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/saili-simulator.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/sony-playstation.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/taranis.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/xbox-360.yml
MAVProxy.modules.mavproxy_joystick: Loading definition from /home/anthony/.local/lib/python2.7/site-packages/MAVProxy/modules/mavproxy_joystick/joysticks/xboxdrv-mode2.yml
MAVProxy.modules.mavproxy_joystick: Failed to find matching joystick.
Loaded module joystick

Don't know what to do next. Please help. Been stuck on this for three days. :(

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the SIM_VEHICLE ArduPlane and MAVProxy commands, then inspect the mavproxy_joystick module and the listed joysticks/taranis.yml definition. Check how pygame identifies the Taranis and how the module matches it against available definitions. Done means MAVProxy recognizes the Taranis and loads the joystick without reporting “Failed to find matching joystick.”

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.