mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 13:13:35 +08:00
commander: Notify negative on manual arming fails
This commit is contained in:
@@ -1342,6 +1342,7 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
} else if (arming_ret == TRANSITION_DENIED) {
|
} else if (arming_ret == TRANSITION_DENIED) {
|
||||||
/* DENIED here indicates bug in the commander */
|
/* DENIED here indicates bug in the commander */
|
||||||
mavlink_log_critical(mavlink_fd, "ERROR: arming state transition denied");
|
mavlink_log_critical(mavlink_fd, "ERROR: arming state transition denied");
|
||||||
|
tune_negative(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* evaluate the main state machine according to mode switches */
|
/* evaluate the main state machine according to mode switches */
|
||||||
|
|||||||
Reference in New Issue
Block a user