Copter: add mode_allows_arming function

This commit is contained in:
Jonathan Challinger 2014-10-10 02:26:43 -07:00 committed by Randy Mackay
parent 3e1bffe9ab
commit cc56a972d0
1 changed files with 7 additions and 0 deletions

View File

@ -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.
//