Skip to content
Snippets Groups Projects
Commit e05f8d30 authored by Jonathan Challinger's avatar Jonathan Challinger Committed by Randy Mackay
Browse files

Copter: add mode_allows_arming function

parent 7ea5e69f
No related branches found
No related tags found
No related merge requests found
......@@ -267,6 +267,13 @@ static bool manual_flight_mode(uint8_t mode) {
return false;
}
static bool mode_allows_arming(uint8_t mode) {
if (manual_flight_mode(mode) || mode == LOITER || mode == ALT_HOLD || mode == POSHOLD || mode == AUTOTUNE || mode == GUIDED) {
return true;
}
return false;
}
//
// print_flight_mode - prints flight mode to serial port.
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment