1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

add runcam split support (#1977)

Add runcam split support
USE_RCSPLIT definition for FLASH_SIZE > 128 in common.h
This commit is contained in:
azolyoung 2017-08-08 20:39:27 +08:00 committed by Konstantin Sharlaimov
parent 2bbd9d9667
commit fa603a27ef
12 changed files with 745 additions and 7 deletions

View file

@ -141,6 +141,9 @@ static const box_t boxes[CHECKBOX_ITEM_COUNT + 1] = {
{ BOXNAVLAUNCH, "NAV LAUNCH;", 36 },
{ BOXAUTOTRIM, "SERVO AUTOTRIM;", 37 },
{ BOXKILLSWITCH, "KILLSWITCH;", 38 },
{ BOXCAMERA1, "CAMERA CONTROL 1;", 39 },
{ BOXCAMERA2, "CAMERA CONTROL 2;", 40 },
{ BOXCAMERA3, "CAMERA CONTROL 3;", 41 },
{ CHECKBOX_ITEM_COUNT, NULL, 0xFF }
};
@ -328,6 +331,12 @@ static void initActiveBoxIds(void)
activeBoxIds[activeBoxIdCount++] = BOXKILLSWITCH;
activeBoxIds[activeBoxIdCount++] = BOXFAILSAFE;
#ifdef USE_RCSPLIT
activeBoxIds[activeBoxIdCount++] = BOXCAMERA1;
activeBoxIds[activeBoxIdCount++] = BOXCAMERA2;
activeBoxIds[activeBoxIdCount++] = BOXCAMERA3;
#endif
}
#define IS_ENABLED(mask) (mask == 0 ? 0 : 1)