Hello there, just trying to get my head around a simple python script to arm / disarm SITL Rover.
I have borrowed some functions from the Ardupilot Autotest code and tried to keep things as simple as possible.
I can arm the vehicle but cannot disarm.
Any hints or tips would be appreciated.
Kind regards, Ben
Link to code: https://gist.github.com/benboughton1/b5b12130f0448ecef928d8a30c84c4e8
Starting SITL:
./ardurover --model rover --speedup 3 --defaults ../../../Tools/autotest/default_params/rover.parm
Output from code:
starting...
motors armed? 0
arming throttle...
running cmd
ACK received: COMMAND_ACK {command : 400, result : 0}
motors armed: 0
attempt to disarm rover
running cmd
ACK received: COMMAND_ACK {command : 400, result : 0}
wait a long time in vase it takes a while...
motors armed: 128