1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Merge pull request #5851 from robertlacroix/graveyard

Add Paralyze mode support
This commit is contained in:
Michael Keller 2018-05-12 12:02:18 +12:00 committed by GitHub
commit ea8432b941
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 164 additions and 4 deletions

View file

@ -92,6 +92,7 @@ static const box_t boxes[CHECKBOX_ITEM_COUNT] = {
{ BOXUSER3, "USER3", 42 },
{ BOXUSER4, "USER4", 43 },
{ BOXPIDAUDIO, "PID AUDIO", 44 },
{ BOXPARALYZE, "PARALYZE", 45 },
};
// mask of enabled IDs, calculated on startup based on enabled features. boxId_e is used as bit index
@ -269,6 +270,8 @@ void initActiveBoxIds(void)
BME(BOXVTXPITMODE);
#endif
BME(BOXPARALYZE);
#ifdef USE_PINIOBOX
// Turn BOXUSERx only if pinioBox facility monitors them, as the facility is the only BOXUSERx observer.
// Note that pinioBoxConfig can be set to monitor any box.