ardupilot
ardupilot copied to clipboard
modify cmd path in Tools/scripts/runcoptertest.py
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 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?
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: @.***>