ArduPilot / ArduPilot/MAVProxy

Mavproxy exited, and Mavproxy killing tasks, occured this error when i run SITL command.

Open
#1,564 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
595
Forks
773
Avg merge
2d 6h
Merged PRs (30d)
18

Description

when i run the bellow command to open SITL map and console the Mavproxy not work well, the command and its output is bellow.

this is my command line commands

cd ardupilot/ArduCopter/
python3 ../Tools/autotest/sim_vehicle.py -w -v ArduCopter

the bellow is its output or error, now have I can to run above command to finally open console and map.

[1373/1374] Linking build/sitl/bin/arducopter
[1374/1374] checking symbols build/sitl/bin/arducopter
Waf: Leaving directory `/home/khmj/ardupilot/build/sitl'

BUILD SUMMARY
Build directory: /home/khmj/ardupilot/build/sitl
Target Text (B) Data (B) BSS (B) Total Flash Used (B) Free Flash (B) External Flash Used (B)
----------------------------------------------------------------------------------------------------------
bin/arducopter 4245559 198101 278848 4443660 Not Applicable Not Applicable

'build' finished successfully (1.632s)
SIM_VEHICLE: Using defaults from (../Tools/autotest/default_params/copter.parm)
SIM_VEHICLE: Run ArduCopter
SIM_VEHICLE: "/home/khmj/ardupilot/Tools/autotest/run_in_terminal_window.sh" "ArduCopter" "/home/khmj/ardupilot/build/sitl/bin/arducopter" "-w" "--model" "+" "--speedup" "1" "--slave" "0" "--defaults" "../Tools/autotest/default_params/copter.parm" "--sim-address=127.0.0.1" "-I0"
RiTW: Starting ArduCopter : /home/khmj/ardupilot/build/sitl/bin/arducopter -w --model + --speedup 1 --slave 0 --defaults ../Tools/autotest/default_params/copter.parm --sim-address=127.0.0.1 -I0
SIM_VEHICLE: Run MavProxy
SIM_VEHICLE: "mavproxy.py" "--retries" "5" "--out" "127.0.0.1:14550" "--master" "tcp:127.0.0.1:5760" "--sitl" "127.0.0.1:5501"
Connect tcp:127.0.0.1:5760 source_system=255
Failed to load module: No module named 'cmdlong'. Use 'set moddebug 3' in the MAVProxy console to enable traceback
Traceback (most recent call last):
File "/home/khmj/.local/bin/mavproxy.py", line 1506, in
mpstate.load_module(m, quiet=True)
File "/home/khmj/.local/bin/mavproxy.py", line 375, in load_module
module = m.init(mpstate, **kwargs)
AttributeError: module 'terrain' has no attribute 'init'
SIM_VEHICLE: MAVProxy exited
SIM_VEHICLE: Killing tasks
khmj@khmj-Victus-by-HP-15L-Gaming-Desktop-TG02-2xxx:~/ardupilot/ArduCopter$

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported command from ArduCopter: python3 ../Tools/autotest/sim_vehicle.py -w -v ArduCopter. Read the MAVProxy startup path shown in sim_vehicle.py and the installed mavproxy.py traceback, then investigate why cmdlong cannot load and terrain lacks init. Done means SITL starts MAVProxy without exiting or killing tasks.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.