Rover: ensure arming when running motor test

This commit is contained in:
Peter Barker 2021-08-12 18:28:19 +10:00 committed by Peter Barker
parent d03cfb8615
commit f32fe77602
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ MAV_RESULT Rover::mavlink_motor_test_start(const GCS_MAVLINK &gcs_chan, AP_Motor
// arm motors
if (!arming.is_armed()) {
arming.arm(AP_Arming::Method::MOTORTEST);
if (!arming.arm(AP_Arming::Method::MOTORTEST)) {
return MAV_RESULT_FAILED;
}
}
// disable failsafes