Skip to content

Commit

Permalink
iNAV CMS support
Browse files Browse the repository at this point in the history
Access FC settings expose dvia CMS
  • Loading branch information
ShikOfTheRa committed Nov 23, 2017
1 parent 66b6372 commit 0528730
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
28 changes: 26 additions & 2 deletions MW_OSD/Def.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
#endif

#ifdef iNAV //set up latest at time of release
#define CLEANFLIGHT190
// #define iNAV
#endif

#ifdef BASEFLIGHT //set up latest at time of release
Expand Down Expand Up @@ -186,7 +186,7 @@
#define MENU_PID 1 //PID CONFIG
#define MENU_RC 2 //RC TUNING
#define MENU_RC_2 3 //RC TUNING PAGE 2
#define MENU_INFO 4 //RC TUNING PAGE 2
#define MENU_INFO 4 //RC TUNING FC
#define MENU_VOLTAGE 5 //VOLTAGE
#define MENU_RSSI 6 //RSSI
#define MENU_CURRENT 7 //CURRENT
Expand Down Expand Up @@ -222,6 +222,30 @@
#define MAXPAGE MENU_DEBUG
#endif

#if defined iNAV // same as CLEANFLIGHT190 + CMS
#define AMPERAGE_DIV 10
#define CORRECT_MSP_CF2
#define CORRECT_MENU_RCT2
#define ENABLE_MSP_SAVE_ADVANCED
#define CORRECTLOOPTIME
#define CANVAS_SUPPORT

#define MENU_STAT 0 //STATISTICS
#define MENU_PID 1 //PID CONFIG
#define MENU_RC 2 //RC TUNING
#define MENU_RC_2 3 //RC TUNING PAGE 2
#define MENU_INFO 4 //RC TUNING FC
#define MENU_VOLTAGE 5 //VOLTAGE
#define MENU_RSSI 6 //RSSI
#define MENU_CURRENT 7 //CURRENT
#define MENU_DISPLAY 8 //DISPLAY
#define MENU_ADVANCED 9 //ADVANCED
#define MENU_ALARMS 10 //ALARMS
#define MENU_PROFILE 11 //PROFILE+PID CONTROLLER
#define MENU_DEBUG 12
#define MAXPAGE MENU_DEBUG
#endif

#if defined CLEANFLIGHT180
#define AMPERAGE_DIV 10
#define CORRECT_MSP_CF1
Expand Down
4 changes: 2 additions & 2 deletions MW_OSD/GlobalVariables.h
Original file line number Diff line number Diff line change
Expand Up @@ -1171,12 +1171,12 @@ const char configMsg130[] PROGMEM = "RC TUNING 2";
const char configMsg131[] PROGMEM = "TPA BREAKPOINT";
const char configMsg132[] PROGMEM = "YAW RC EXPO";
//-----------------------------------------------------------INFO Page
const char configMsg140[] PROGMEM = "ACCESS ALL SETTINGS";
const char configMsg140[] PROGMEM = "ACCESS FC SETTINGS";
const char configMsg141[] PROGMEM = "TX :THRT MIDDLE";
const char configMsg142[] PROGMEM = " +YAW LEFT";
const char configMsg143[] PROGMEM = " +PITCH FULL";
const char configMsg144[] PROGMEM = " ";
const char configMsg145[] PROGMEM = "F3 CONTROLLERS ONLY";
const char configMsg145[] PROGMEM = "IF SUPPORTED";
//-----------------------------------------------------------DEBUG Page
#ifdef DEBUGMENU
const char configMsg150[] PROGMEM = " ";
Expand Down

0 comments on commit 0528730

Please sign in to comment.