ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

modify cmd path in Tools/scripts/runcoptertest.py

Open Czw007 opened this issue 3 years ago • 2 comments

In the line 38, the path of cmd= '../Tools/autotest/sim_vehicle.py -D" is invalid, i think it should be cmd= '../autotest/sim_vehicle.py -D"

Czw007 avatar Jul 23 '22 02:07 Czw007

@Czw007 while this will fix things for the way you're running things, it will break the way the original author runs things.

The correct fix is to use a path based on where you're starting the script from. Here's an example: https://github.com/ardupilot/ardupilot/blob/master/libraries/SITL/examples/on-hardware/sitl-on-hw.sh#L10

Did you want to continue to chase this?

peterbarker avatar Sep 15 '22 06:09 peterbarker

you are right!That's not a bug. Thank you~

------------------ 原始邮件 ------------------ 发件人: "ArduPilot/ardupilot" @.>; 发送时间: 2022年9月15日(星期四) 下午2:35 @.>; @.@.>; 主题: Re: [ArduPilot/ardupilot] modify cmd path in Tools/scripts/runcoptertest.py (PR #21264)

@Czw007 while this will fix things for the way you're running things, it will break the way the original author runs things.

The correct fix is to use a path based on where you're starting the script from. Here's an example: https://github.com/ardupilot/ardupilot/blob/master/libraries/SITL/examples/on-hardware/sitl-on-hw.sh#L10

Did you want to continue to chase this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Czw007 avatar Sep 15 '22 07:09 Czw007