1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Add CMS failsafe setup menu

Located under the Features top-level menu. Allows configuring the failsafe procedure (like selecting GPS-RESCUE if applicable).

Bounded with `#ifdef USE_CMS_FAILSAFE_MENU` so it can be disabled for space critical targets.
This commit is contained in:
Bruce Luckcuck 2019-01-10 06:26:33 -05:00
parent d76807fd33
commit 330d93eb5b
8 changed files with 134 additions and 1 deletions

View file

@ -72,6 +72,12 @@ PG_RESET_TEMPLATE(failsafeConfig_t, failsafeConfig,
.failsafe_procedure = FAILSAFE_PROCEDURE_DROP_IT // default full failsafe procedure is 0: auto-landing
);
const char * const failsafeProcedureNames[FAILSAFE_PROCEDURE_COUNT] = {
"AUTO-LAND",
"DROP",
"GPS-RESCUE"
};
/*
* Should called when the failsafe config needs to be changed - e.g. a different profile has been selected.
*/