mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
Copter: add mode_allows_arming function
This commit is contained in:
parent
3e1bffe9ab
commit
cc56a972d0
@ -267,6 +267,13 @@ static bool manual_flight_mode(uint8_t mode) {
|
|||||||
return false;
|
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.
|
// print_flight_mode - prints flight mode to serial port.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user