MAVProxy icon indicating copy to clipboard operation
MAVProxy copied to clipboard

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

Open khan123123-hue opened this issue 7 months ago • 1 comments

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$

khan123123-hue avatar May 07 '25 07:05 khan123123-hue

Can you run python3 ../Tools/autotest/sim_vehicle.py -w -v ArduCopter --moddebug=3 and post the output?

stephendade avatar May 08 '25 00:05 stephendade