forked from Archive/PX4-Autopilot
commander: Notify negative on manual arming fails
This commit is contained in:
parent
77af7a5beb
commit
bbdf2bc07a
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue