Skip to content

Commit

Permalink
Option do disable flight timer alarm. Disable sumamry reset from high…
Browse files Browse the repository at this point in the history
… throttle
  • Loading branch information
ShikOfTheRa committed Jan 2, 2018
1 parent 8432c8f commit 8f41150
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MW_OSD/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
//#define CROPGPSPOSITION // Crop GPS coordinate display to decimals only ".DDDDDDD"
//#define MASKGPSLOCATION // MASK GPS coordinate display with major digits set to random location "XXX.DDDDDDD"
//#define TEXTMODE // Enable to display the flyingmode as text instead of symbols

//NOSUMMARYTHROTTLERESET // Enable to supress summary display clearing from throttle

/******************** Power / efficiency display Settings ************************/
#define DISPLAYWATTS // Enable this to display Watts (if Watts selected in layouts). Select one of WATTS/MAHMIN/EFFICIENCY
Expand Down
2 changes: 2 additions & 0 deletions MW_OSD/Def.h
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@
#undef OSD_SWITCH_RC
#undef DISPLAY_PR
#define NOAHI
#define NOSUMMARYTHROTTLERESET

// #define HIDEARMEDSTATUS
#define ALARM_GPS 5
Expand Down Expand Up @@ -765,6 +766,7 @@ enum {
#ifdef PROTOCOL_MAVLINK
#undef PROTOCOL_MSP
#define FORCESENSORS
#define NOSUMMARYTHROTTLERESET
#endif

#ifdef PROTOCOL_LTM
Expand Down
6 changes: 4 additions & 2 deletions MW_OSD/Screen.ino
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,10 @@ void displayTime(void)

uint32_t displaytime;
if (armed) {
if(((flyTime/60)>=Settings[S_FLYTIME_ALARM])&&(timer.Blink2hz))
return;
if (Settings[S_FLYTIME_ALARM]>0){
if(((flyTime/60)>=Settings[S_FLYTIME_ALARM])&&(timer.Blink2hz))
return;
}

if(flyTime < 3600) {
screenBuffer[0] = SYM_FLY_M;
Expand Down
4 changes: 2 additions & 2 deletions MW_OSD/Serial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -939,14 +939,14 @@ if((MwRcData[PITCHSTICK]>MAXSTICK)&&(MwRcData[YAWSTICK]>MAXSTICK)&&(MwRcData[THR
else if(configMode) {
int8_t oldmenudir=constrain(menudir,-5,5);
menudir=0;
#ifndef GPSOSD
#ifndef NOSUMMARYTHROTTLERESET
if(previousarmedstatus&&(MwRcData[THROTTLESTICK]>1300))
{
// EXIT from SHOW STATISTICS AFTER DISARM (push throttle up)
waitStick = 2;
configExit();
}
#endif // GPSOSD
#endif // NOSUMMARYTHROTTLERESET
#ifdef TX_MODE1
if(configMode&&(MwRcData[YAWSTICK]>MAXSTICK)) // MOVE RIGHT
#else
Expand Down

0 comments on commit 8f41150

Please sign in to comment.