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

Initial cut on PINIO mode

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2018-11-12 22:46:07 +01:00
parent f740c47c14
commit 884c0dbdb3
16 changed files with 336 additions and 5 deletions

View file

@ -81,6 +81,8 @@ static const box_t boxes[CHECKBOX_ITEM_COUNT + 1] = {
{ BOXOSDALT3, "OSD ALT 3", 44 },
{ BOXNAVCRUISE, "NAV CRUISE", 45 },
{ BOXBRAKING, "MC BRAKING", 46 },
{ BOXUSER1, "USER1", 47 },
{ BOXUSER2, "USER2", 48 },
{ CHECKBOX_ITEM_COUNT, NULL, 0xFF }
};
@ -266,6 +268,12 @@ void initActiveBoxIds(void)
activeBoxIds[activeBoxIdCount++] = BOXCAMERA3;
#endif
#ifdef USE_PINIOBOX
// USER modes are only used for PINIO at the moment
activeBoxIds[activeBoxIdCount++] = BOXUSER1;
activeBoxIds[activeBoxIdCount++] = BOXUSER2;
#endif
#if defined(USE_OSD) && defined(OSD_LAYOUT_COUNT)
#if OSD_LAYOUT_COUNT > 0
activeBoxIds[activeBoxIdCount++] = BOXOSDALT1;