Merge branch 'origin/next'
@@ -298,7 +298,6 @@
|
||||
<file>themes/monochrome/16/edit.png</file>
|
||||
<file>themes/monochrome/16/information.png</file>
|
||||
<file>themes/monochrome/16/configure.png</file>
|
||||
<file>themes/monochrome/16/switch_dir.png</file>
|
||||
<file>themes/monochrome/16/list.png</file>
|
||||
<file>themes/monochrome/16/wizard.png</file>
|
||||
<file>themes/monochrome/16/logs.png</file>
|
||||
@@ -341,7 +340,6 @@
|
||||
<file>themes/monochrome/24/edit.png</file>
|
||||
<file>themes/monochrome/24/information.png</file>
|
||||
<file>themes/monochrome/24/configure.png</file>
|
||||
<file>themes/monochrome/24/switch_dir.png</file>
|
||||
<file>themes/monochrome/24/list.png</file>
|
||||
<file>themes/monochrome/24/wizard.png</file>
|
||||
<file>themes/monochrome/24/logs.png</file>
|
||||
@@ -384,7 +382,6 @@
|
||||
<file>themes/monochrome/32/edit.png</file>
|
||||
<file>themes/monochrome/32/information.png</file>
|
||||
<file>themes/monochrome/32/configure.png</file>
|
||||
<file>themes/monochrome/32/switch_dir.png</file>
|
||||
<file>themes/monochrome/32/list.png</file>
|
||||
<file>themes/monochrome/32/wizard.png</file>
|
||||
<file>themes/monochrome/32/logs.png</file>
|
||||
@@ -427,7 +424,6 @@
|
||||
<file>themes/monochrome/48/edit.png</file>
|
||||
<file>themes/monochrome/48/information.png</file>
|
||||
<file>themes/monochrome/48/configure.png</file>
|
||||
<file>themes/monochrome/48/switch_dir.png</file>
|
||||
<file>themes/monochrome/48/list.png</file>
|
||||
<file>themes/monochrome/48/wizard.png</file>
|
||||
<file>themes/monochrome/48/logs.png</file>
|
||||
@@ -470,7 +466,6 @@
|
||||
<file>themes/classic/16/edit.png</file>
|
||||
<file>themes/classic/16/information.png</file>
|
||||
<file>themes/classic/16/configure.png</file>
|
||||
<file>themes/classic/16/switch_dir.png</file>
|
||||
<file>themes/classic/16/list.png</file>
|
||||
<file>themes/classic/16/wizard.png</file>
|
||||
<file>themes/classic/16/logs.png</file>
|
||||
@@ -513,7 +508,6 @@
|
||||
<file>themes/classic/24/edit.png</file>
|
||||
<file>themes/classic/24/information.png</file>
|
||||
<file>themes/classic/24/configure.png</file>
|
||||
<file>themes/classic/24/switch_dir.png</file>
|
||||
<file>themes/classic/24/list.png</file>
|
||||
<file>themes/classic/24/wizard.png</file>
|
||||
<file>themes/classic/24/logs.png</file>
|
||||
@@ -556,7 +550,6 @@
|
||||
<file>themes/classic/32/edit.png</file>
|
||||
<file>themes/classic/32/information.png</file>
|
||||
<file>themes/classic/32/configure.png</file>
|
||||
<file>themes/classic/32/switch_dir.png</file>
|
||||
<file>themes/classic/32/list.png</file>
|
||||
<file>themes/classic/32/wizard.png</file>
|
||||
<file>themes/classic/32/logs.png</file>
|
||||
@@ -599,7 +592,6 @@
|
||||
<file>themes/classic/48/edit.png</file>
|
||||
<file>themes/classic/48/information.png</file>
|
||||
<file>themes/classic/48/configure.png</file>
|
||||
<file>themes/classic/48/switch_dir.png</file>
|
||||
<file>themes/classic/48/list.png</file>
|
||||
<file>themes/classic/48/wizard.png</file>
|
||||
<file>themes/classic/48/logs.png</file>
|
||||
@@ -642,7 +634,6 @@
|
||||
<file>themes/monoblue/16/edit.png</file>
|
||||
<file>themes/monoblue/16/information.png</file>
|
||||
<file>themes/monoblue/16/configure.png</file>
|
||||
<file>themes/monoblue/16/switch_dir.png</file>
|
||||
<file>themes/monoblue/16/list.png</file>
|
||||
<file>themes/monoblue/16/wizard.png</file>
|
||||
<file>themes/monoblue/16/logs.png</file>
|
||||
@@ -685,7 +676,6 @@
|
||||
<file>themes/monoblue/24/edit.png</file>
|
||||
<file>themes/monoblue/24/information.png</file>
|
||||
<file>themes/monoblue/24/configure.png</file>
|
||||
<file>themes/monoblue/24/switch_dir.png</file>
|
||||
<file>themes/monoblue/24/list.png</file>
|
||||
<file>themes/monoblue/24/wizard.png</file>
|
||||
<file>themes/monoblue/24/logs.png</file>
|
||||
@@ -728,7 +718,6 @@
|
||||
<file>themes/monoblue/32/edit.png</file>
|
||||
<file>themes/monoblue/32/information.png</file>
|
||||
<file>themes/monoblue/32/configure.png</file>
|
||||
<file>themes/monoblue/32/switch_dir.png</file>
|
||||
<file>themes/monoblue/32/list.png</file>
|
||||
<file>themes/monoblue/32/wizard.png</file>
|
||||
<file>themes/monoblue/32/logs.png</file>
|
||||
@@ -771,7 +760,6 @@
|
||||
<file>themes/monoblue/48/edit.png</file>
|
||||
<file>themes/monoblue/48/information.png</file>
|
||||
<file>themes/monoblue/48/configure.png</file>
|
||||
<file>themes/monoblue/48/switch_dir.png</file>
|
||||
<file>themes/monoblue/48/list.png</file>
|
||||
<file>themes/monoblue/48/wizard.png</file>
|
||||
<file>themes/monoblue/48/logs.png</file>
|
||||
@@ -814,7 +802,6 @@
|
||||
<file>themes/monowhite/16/edit.png</file>
|
||||
<file>themes/monowhite/16/information.png</file>
|
||||
<file>themes/monowhite/16/configure.png</file>
|
||||
<file>themes/monowhite/16/switch_dir.png</file>
|
||||
<file>themes/monowhite/16/list.png</file>
|
||||
<file>themes/monowhite/16/wizard.png</file>
|
||||
<file>themes/monowhite/16/logs.png</file>
|
||||
@@ -857,7 +844,6 @@
|
||||
<file>themes/monowhite/24/edit.png</file>
|
||||
<file>themes/monowhite/24/information.png</file>
|
||||
<file>themes/monowhite/24/configure.png</file>
|
||||
<file>themes/monowhite/24/switch_dir.png</file>
|
||||
<file>themes/monowhite/24/list.png</file>
|
||||
<file>themes/monowhite/24/wizard.png</file>
|
||||
<file>themes/monowhite/24/logs.png</file>
|
||||
@@ -900,7 +886,6 @@
|
||||
<file>themes/monowhite/32/edit.png</file>
|
||||
<file>themes/monowhite/32/information.png</file>
|
||||
<file>themes/monowhite/32/configure.png</file>
|
||||
<file>themes/monowhite/32/switch_dir.png</file>
|
||||
<file>themes/monowhite/32/list.png</file>
|
||||
<file>themes/monowhite/32/wizard.png</file>
|
||||
<file>themes/monowhite/32/logs.png</file>
|
||||
@@ -943,7 +928,6 @@
|
||||
<file>themes/monowhite/48/edit.png</file>
|
||||
<file>themes/monowhite/48/information.png</file>
|
||||
<file>themes/monowhite/48/configure.png</file>
|
||||
<file>themes/monowhite/48/switch_dir.png</file>
|
||||
<file>themes/monowhite/48/list.png</file>
|
||||
<file>themes/monowhite/48/wizard.png</file>
|
||||
<file>themes/monowhite/48/logs.png</file>
|
||||
|
||||
@@ -51,7 +51,8 @@ enum BoardEnum {
|
||||
BOARD_TARANIS_REV4a
|
||||
};
|
||||
|
||||
#define IS_STOCK(board) (board==BOARD_STOCK || board==BOARD_M128)
|
||||
#define IS_9X(board) (board==BOARD_STOCK || board==BOARD_M128)
|
||||
#define IS_STOCK(board) (board==BOARD_STOCK)
|
||||
#define IS_2560(board) (board==BOARD_GRUVIN9X || board==BOARD_MEGA2560)
|
||||
#define IS_ARM(board) (board==BOARD_SKY9X || board==BOARD_TARANIS || board==BOARD_TARANIS_REV4a)
|
||||
#define IS_TARANIS(board) (board==BOARD_TARANIS || board==BOARD_TARANIS_REV4a)
|
||||
@@ -758,6 +759,9 @@ class FrSkyData {
|
||||
int varioCenterMin; // if increment in 0.2m/s = 3.0m/s max
|
||||
int varioCenterMax;
|
||||
int varioMax;
|
||||
bool mAhPersistent;
|
||||
unsigned int storedMah;
|
||||
int fasOffset;
|
||||
|
||||
void clear() { memset(this, 0, sizeof(FrSkyData)); rssiAlarms[0].clear(2, 45); rssiAlarms[1].clear(3, 42); varioSource = 2/*VARIO*/; }
|
||||
};
|
||||
@@ -840,7 +844,7 @@ class ModelData {
|
||||
TimerData timers[2];
|
||||
bool thrTrim; // Enable Throttle Trim
|
||||
bool thrExpo; // Enable Throttle Expo
|
||||
unsigned int trimInc; // Trim Increments
|
||||
int trimInc; // Trim Increments
|
||||
bool disableThrottleWarning;
|
||||
|
||||
unsigned int beepANACenter; // 1<<0->A1.. 1<<6->A7
|
||||
@@ -1015,7 +1019,9 @@ enum Capability {
|
||||
LuaInputs,
|
||||
LimitsPer1000,
|
||||
EnhancedCurves,
|
||||
TelemetryInternalAlarms
|
||||
TelemetryInternalAlarms,
|
||||
HasFasOffset,
|
||||
HasMahPersistent
|
||||
};
|
||||
|
||||
enum UseContext {
|
||||
|
||||
@@ -386,7 +386,7 @@ t_Er9xModelData::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.funcSw[0].func = FuncInstantTrim;
|
||||
if (trimSw) {
|
||||
|
||||
@@ -531,7 +531,7 @@ t_Ersky9xModelData_v10::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.funcSw[0].func = FuncInstantTrim;
|
||||
if (trimSw) {
|
||||
@@ -652,7 +652,7 @@ t_Ersky9xModelData_v11::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.funcSw[0].func = FuncInstantTrim;
|
||||
if (trimSw) {
|
||||
|
||||
@@ -458,7 +458,7 @@ t_Gruvin9xModelData_v102::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -529,7 +529,7 @@ t_Gruvin9xModelData_v103::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -600,7 +600,7 @@ t_Gruvin9xModelData_v105::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -691,7 +691,7 @@ t_Gruvin9xModelData_v106::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc-2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
|
||||
@@ -454,7 +454,7 @@ t_Open9xGruvin9xModelData_v207::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -538,7 +538,7 @@ t_Open9xGruvin9xModelData_v208::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -627,7 +627,7 @@ t_Open9xGruvin9xModelData_v209::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -717,7 +717,7 @@ t_Open9xGruvin9xModelData_v210::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -804,7 +804,7 @@ t_Open9xGruvin9xModelData_v211::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
|
||||
@@ -760,7 +760,7 @@ t_Open9xArmModelData_v208::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -849,7 +849,7 @@ t_Open9xArmModelData_v209::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -939,7 +939,7 @@ t_Open9xArmModelData_v210::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -1023,7 +1023,7 @@ t_Open9xArmModelData_v211::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
@@ -1110,7 +1110,7 @@ t_Open9xArmModelData_v212::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
|
||||
@@ -950,7 +950,7 @@ t_Open9xModelData_v201::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.thrExpo = thrExpo;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1024,7 +1024,7 @@ t_Open9xModelData_v202::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter,
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1100,7 +1100,7 @@ t_Open9xModelData_v203::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1174,7 +1174,7 @@ t_Open9xModelData_v204::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1253,7 +1253,7 @@ t_Open9xModelData_v205::operator ModelData ()
|
||||
}
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1339,7 +1339,7 @@ t_Open9xModelData_v208::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1432,7 +1432,7 @@ t_Open9xModelData_v209::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1526,7 +1526,7 @@ t_Open9xModelData_v210::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
@@ -1614,7 +1614,7 @@ t_Open9xModelData_v211::operator ModelData ()
|
||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||
c9x.thrTrim = thrTrim;
|
||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||
c9x.trimInc = trimInc;
|
||||
c9x.trimInc = trimInc - 2;
|
||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||
c9x.beepANACenter = beepANACenter;
|
||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||
|
||||
@@ -1717,10 +1717,9 @@ class FrskyField: public StructField {
|
||||
Append(new ConversionField< SignedField<6> >(frsky.rssiAlarms[i].value, -45+i*3));
|
||||
}
|
||||
if (version >= 216) {
|
||||
// TODO uint16_t mAhPersistent:1;
|
||||
// uint16_t storedMah:15;
|
||||
// int8_t fasOffset;
|
||||
Append(new SpareBitsField<24>());
|
||||
Append(new BoolField<1>(frsky.mAhPersistent));
|
||||
Append(new UnsignedField<15>(frsky.storedMah));
|
||||
Append(new SignedField<8>(frsky.fasOffset));
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -1851,7 +1850,11 @@ Open9xModelDataNew::Open9xModelDataNew(ModelData & modelData, BoardEnum board, u
|
||||
else
|
||||
internalField.Append(new ConversionField< SignedField<4> >(modelData.moduleData[0].channelsCount, &channelsConversionTable, "Channels number", ::QObject::tr("OpenTX doesn't allow this number of channels")));
|
||||
|
||||
internalField.Append(new UnsignedField<3>(modelData.trimInc));
|
||||
if (version >= 216)
|
||||
internalField.Append(new SignedField<3>(modelData.trimInc));
|
||||
else
|
||||
internalField.Append(new ConversionField< SignedField<3> >(modelData.trimInc, +2));
|
||||
|
||||
internalField.Append(new BoolField<1>(modelData.disableThrottleWarning));
|
||||
|
||||
if (IS_TARANIS(board) || (IS_ARM(board) && version >= 216))
|
||||
@@ -2044,7 +2047,7 @@ Open9xGeneralDataNew::Open9xGeneralDataNew(GeneralSettings & generalData, BoardE
|
||||
internalField.Append(new SpareBitsField<1>());
|
||||
|
||||
internalField.Append(new UnsignedField<8>(generalData.inactivityTimer));
|
||||
if (IS_STOCK(board) && version >= 215) {
|
||||
if (IS_9X(board) && version >= 215) {
|
||||
internalField.Append(new UnsignedField<3>(generalData.mavbaud));
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -690,6 +690,10 @@ int Open9xInterface::getCapability(const Capability capability)
|
||||
case EnhancedCurves:
|
||||
case TelemetryInternalAlarms:
|
||||
return IS_TARANIS(board);
|
||||
case HasFasOffset:
|
||||
return (IS_STOCK(board) ? false : true);
|
||||
case HasMahPersistent:
|
||||
return (IS_ARM(board) ? true : false);
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
@@ -1050,6 +1054,7 @@ void RegisterOpen9xFirmwares()
|
||||
open9x->addOption("novario", QObject::tr("No vario support"));
|
||||
open9x->addOption("nogps", QObject::tr("No GPS support"));
|
||||
open9x->addOption("nogauges", QObject::tr("No gauges in the custom telemetry screen"));
|
||||
open9x->addOption("fasoffset", QObject::tr("Allow compensating for offset errors in FrSky FAS current sensors"));
|
||||
open9x->addOptions(fai_options);
|
||||
firmwares.push_back(open9x);
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 415 B |
|
Before Width: | Height: | Size: 706 B |
@@ -1556,12 +1556,6 @@ void MainWindow::updateMenus()
|
||||
saveAct->setEnabled(hasMdiChild);
|
||||
saveAsAct->setEnabled(hasMdiChild);
|
||||
pasteAct->setEnabled(hasMdiChild ? activeMdiChild()->hasPasteData() : false);
|
||||
closeAct->setEnabled(hasMdiChild);
|
||||
closeAllAct->setEnabled(hasMdiChild);
|
||||
tileAct->setEnabled(hasMdiChild);
|
||||
cascadeAct->setEnabled(hasMdiChild);
|
||||
nextAct->setEnabled(hasMdiChild);
|
||||
previousAct->setEnabled(hasMdiChild);
|
||||
burnToAct->setEnabled(hasMdiChild);
|
||||
separatorAct->setVisible(hasMdiChild);
|
||||
|
||||
@@ -1590,39 +1584,6 @@ void MainWindow::updateMenus()
|
||||
profileButton->setDisabled(notfound);
|
||||
}
|
||||
|
||||
void MainWindow::updateWindowMenu()
|
||||
{
|
||||
windowMenu->clear();
|
||||
windowMenu->addAction(closeAct);
|
||||
windowMenu->addAction(closeAllAct);
|
||||
windowMenu->addSeparator();
|
||||
windowMenu->addAction(tileAct);
|
||||
windowMenu->addAction(cascadeAct);
|
||||
windowMenu->addSeparator();
|
||||
windowMenu->addAction(nextAct);
|
||||
windowMenu->addAction(previousAct);
|
||||
windowMenu->addAction(separatorAct);
|
||||
|
||||
QList<QMdiSubWindow *> windows = mdiArea->subWindowList();
|
||||
separatorAct->setVisible(!windows.isEmpty());
|
||||
|
||||
for (int i = 0; i < windows.size(); ++i) {
|
||||
MdiChild *child = qobject_cast<MdiChild *>(windows.at(i)->widget());
|
||||
|
||||
QString text;
|
||||
if (i < 9) {
|
||||
text = tr("&%1 %2").arg(i + 1).arg(child->userFriendlyCurrentFile());
|
||||
} else {
|
||||
text = tr("%1 %2").arg(i + 1).arg(child->userFriendlyCurrentFile());
|
||||
}
|
||||
QAction *action = windowMenu->addAction(text);
|
||||
action->setCheckable(true);
|
||||
action ->setChecked(child == activeMdiChild());
|
||||
connect(action, SIGNAL(triggered()), windowMapper, SLOT(map()));
|
||||
windowMapper->setMapping(action, windows.at(i));
|
||||
}
|
||||
}
|
||||
|
||||
MdiChild *MainWindow::createMdiChild()
|
||||
{
|
||||
MdiChild *child = new MdiChild;
|
||||
@@ -1773,37 +1734,6 @@ void MainWindow::createActions()
|
||||
printAct->setEnabled(false);
|
||||
connect(printAct,SIGNAL(triggered()),this,SLOT(print()));
|
||||
|
||||
closeAct = new QAction(tr("Cl&ose"), this);
|
||||
closeAct->setStatusTip(tr("Close the active window"));
|
||||
connect(closeAct, SIGNAL(triggered()),
|
||||
mdiArea, SLOT(closeActiveSubWindow()));
|
||||
|
||||
closeAllAct = new QAction(tr("Close &All"), this);
|
||||
closeAllAct->setStatusTip(tr("Close all the windows"));
|
||||
connect(closeAllAct, SIGNAL(triggered()),
|
||||
mdiArea, SLOT(closeAllSubWindows()));
|
||||
|
||||
tileAct = new QAction(tr("&Tile"), this);
|
||||
tileAct->setStatusTip(tr("Tile the windows"));
|
||||
connect(tileAct, SIGNAL(triggered()), mdiArea, SLOT(tileSubWindows()));
|
||||
|
||||
cascadeAct = new QAction(tr("&Cascade"), this);
|
||||
cascadeAct->setStatusTip(tr("Cascade the windows"));
|
||||
connect(cascadeAct, SIGNAL(triggered()), mdiArea, SLOT(cascadeSubWindows()));
|
||||
|
||||
nextAct = new QAction(tr("Ne&xt"), this);
|
||||
nextAct->setShortcuts(QKeySequence::NextChild);
|
||||
nextAct->setStatusTip(tr("Move the focus to the next window"));
|
||||
connect(nextAct, SIGNAL(triggered()),
|
||||
mdiArea, SLOT(activateNextSubWindow()));
|
||||
|
||||
previousAct = new QAction(tr("Pre&vious"), this);
|
||||
previousAct->setShortcuts(QKeySequence::PreviousChild);
|
||||
previousAct->setStatusTip(tr("Move the focus to the previous "
|
||||
"window"));
|
||||
connect(previousAct, SIGNAL(triggered()),
|
||||
mdiArea, SLOT(activatePreviousSubWindow()));
|
||||
|
||||
separatorAct = new QAction(this);
|
||||
separatorAct->setSeparator(true);
|
||||
|
||||
@@ -1811,9 +1741,6 @@ void MainWindow::createActions()
|
||||
aboutAct->setStatusTip(tr("Show the application's About box"));
|
||||
connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
|
||||
|
||||
switchLayoutDirectionAct = new QAction(CompanionIcon("switch_dir.png"), tr("Switch layout direction"), this);
|
||||
switchLayoutDirectionAct->setStatusTip(tr("Switch layout Left/Right"));
|
||||
connect(switchLayoutDirectionAct, SIGNAL(triggered()), this, SLOT(switchLayoutDirection()));
|
||||
for (int i = 0; i < MaxRecentFiles; ++i) {
|
||||
recentFileActs[i] = new QAction(this);
|
||||
recentFileActs[i]->setVisible(false);
|
||||
@@ -1857,7 +1784,6 @@ void MainWindow::createMenus()
|
||||
profilesMenu->setIcon(CompanionIcon("profiles.png"));
|
||||
for (int i=0; i<MAX_PROFILES; ++i)
|
||||
profilesMenu->addAction(profileActs[i]);
|
||||
fileMenu->addAction(switchLayoutDirectionAct);
|
||||
fileMenu->addAction(exitAct);
|
||||
|
||||
editMenu = menuBar()->addMenu(tr("&Edit"));
|
||||
@@ -1883,10 +1809,6 @@ void MainWindow::createMenus()
|
||||
burnMenu->addAction(burnFusesAct);
|
||||
burnMenu->addAction(burnListAct);
|
||||
}
|
||||
windowMenu = menuBar()->addMenu(tr("&Window"));
|
||||
updateWindowMenu();
|
||||
connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(updateWindowMenu()));
|
||||
|
||||
menuBar()->addSeparator();
|
||||
|
||||
helpMenu = menuBar()->addMenu(tr("&Help"));
|
||||
|
||||
@@ -120,7 +120,6 @@ private slots:
|
||||
void loadBackup();
|
||||
void preferences();
|
||||
void updateMenus();
|
||||
void updateWindowMenu();
|
||||
MdiChild *createMdiChild();
|
||||
void switchLayoutDirection();
|
||||
void setActiveSubWindow(QWidget *window);
|
||||
@@ -185,7 +184,6 @@ private:
|
||||
QMenu *fileMenu;
|
||||
QMenu *editMenu;
|
||||
QMenu *burnMenu;
|
||||
QMenu *windowMenu;
|
||||
QMenu *helpMenu;
|
||||
QToolBar *fileToolBar;
|
||||
QToolBar *editToolBar;
|
||||
@@ -217,18 +215,11 @@ private:
|
||||
QAction *burnExtenalToEEPROMAct;
|
||||
QAction *burnExtenalFromEEPROMAct;
|
||||
QAction *simulateAct;
|
||||
QAction *closeAct;
|
||||
QAction *closeAllAct;
|
||||
QAction *tileAct;
|
||||
QAction *cascadeAct;
|
||||
QAction *nextAct;
|
||||
QAction *previousAct;
|
||||
QAction *separatorAct;
|
||||
QAction *aboutAct;
|
||||
QAction *printAct;
|
||||
QAction *loadbackupAct;
|
||||
QAction *logsAct;
|
||||
QAction *switchLayoutDirectionAct;
|
||||
QAction *recentFileActs[MAX_RECENT];
|
||||
QAction *profileActs[MAX_PROFILES];
|
||||
QString fwToUpdate;
|
||||
|
||||
@@ -472,7 +472,7 @@ void Setup::on_extendedTrims_toggled(bool checked)
|
||||
|
||||
void Setup::on_trimIncrement_currentIndexChanged(int index)
|
||||
{
|
||||
model.trimInc = index;
|
||||
model.trimInc = index-2;
|
||||
emit modified();
|
||||
}
|
||||
|
||||
@@ -531,7 +531,7 @@ void Setup::update()
|
||||
ui->throttleWarning->setChecked(model.disableThrottleWarning);
|
||||
|
||||
//trim inc, thro trim, thro expo, instatrim
|
||||
ui->trimIncrement->setCurrentIndex(model.trimInc);
|
||||
ui->trimIncrement->setCurrentIndex(model.trimInc+2);
|
||||
ui->throttleTrim->setChecked(model.thrTrim);
|
||||
ui->extendedLimits->setChecked(model.extendedLimits);
|
||||
ui->extendedTrims->setChecked(model.extendedTrims);
|
||||
|
||||
@@ -375,7 +375,7 @@ void TelemetryPanel::setup()
|
||||
else {
|
||||
ui->AltitudeGPS_ChkB->setChecked(model.frsky.FrSkyGpsAlt);
|
||||
}
|
||||
|
||||
|
||||
if (IS_TARANIS(GetEepromInterface()->getBoard())) {
|
||||
ui->AltitudeToolbar_ChkB->setChecked(model.frsky.altitudeDisplayed);
|
||||
}
|
||||
@@ -484,6 +484,32 @@ void TelemetryPanel::setup()
|
||||
} else {
|
||||
ui->frskyProtoCB->addItem(tr("Winged Shadow How High (not supported)"));
|
||||
}
|
||||
|
||||
ui->variousGB->hide();
|
||||
if (!(GetEepromInterface()->getCapability(HasFasOffset)) && !(firmware_id.contains("fasoffset"))) {
|
||||
ui->fasOffset_label->hide();
|
||||
ui->fasOffset_DSB->hide();
|
||||
}
|
||||
else {
|
||||
ui->fasOffset_DSB->setValue(model.frsky.fasOffset/10.0);
|
||||
ui->variousGB->show();
|
||||
}
|
||||
|
||||
if (!(GetEepromInterface()->getCapability(HasMahPersistent))) {
|
||||
ui->mahCount_label->hide();
|
||||
ui->mahCount_SB->hide();
|
||||
ui->mahCount_ChkB->hide();
|
||||
}
|
||||
else {
|
||||
if (model.frsky.mAhPersistent) {
|
||||
ui->mahCount_ChkB->setChecked(true);
|
||||
ui->mahCount_SB->setValue(model.frsky.storedMah);
|
||||
}
|
||||
else {
|
||||
ui->mahCount_SB->setDisabled(true);
|
||||
}
|
||||
ui->variousGB->show();
|
||||
}
|
||||
|
||||
ui->frskyProtoCB->setCurrentIndex(model.frsky.usrProto);
|
||||
ui->frskyUnitsCB->setCurrentIndex(model.frsky.imperial);
|
||||
@@ -717,6 +743,25 @@ void TelemetryPanel::on_varioLimitCenterMax_DSB_editingFinished()
|
||||
emit modified();
|
||||
}
|
||||
|
||||
void TelemetryPanel::on_fasOffset_DSB_editingFinished()
|
||||
{
|
||||
model.frsky.fasOffset = ui->fasOffset_DSB->value()*10;
|
||||
emit modified();
|
||||
}
|
||||
|
||||
void TelemetryPanel::on_mahCount_SB_editingFinished()
|
||||
{
|
||||
model.frsky.storedMah = ui->mahCount_SB->value();
|
||||
emit modified();
|
||||
}
|
||||
|
||||
void TelemetryPanel::on_mahCount_ChkB_toggled(bool checked)
|
||||
{
|
||||
model.frsky.mAhPersistent = checked;
|
||||
ui->mahCount_SB->setDisabled(!checked);
|
||||
emit modified();
|
||||
}
|
||||
|
||||
void TelemetryPanel::telBarUpdate()
|
||||
{
|
||||
int index;
|
||||
|
||||
@@ -74,6 +74,9 @@ class TelemetryPanel : public ModelPanel
|
||||
void on_varioLimitCenterMin_DSB_editingFinished();
|
||||
void on_varioLimitMinOff_ChkB_toggled(bool checked);
|
||||
void on_varioLimitCenterMax_DSB_editingFinished();
|
||||
void on_fasOffset_DSB_editingFinished();
|
||||
void on_mahCount_SB_editingFinished();
|
||||
void on_mahCount_ChkB_toggled(bool checked);
|
||||
void telBarCBcurrentIndexChanged(int index);
|
||||
void ScreenTypeCBcurrentIndexChanged(int index);
|
||||
void telMaxSBeditingFinished();
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>692</width>
|
||||
<height>540</height>
|
||||
<height>568</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,0,1">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_14" stretch="0,0,0">
|
||||
<property name="sizeConstraint">
|
||||
@@ -770,6 +770,106 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="variousGB">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Various</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_6">
|
||||
<property name="topMargin">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="mahCount_SB">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>32767</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="mahCount_label">
|
||||
<property name="text">
|
||||
<string>mAh count</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="fasOffset_label">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>FAS Offset</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="mahCount_ChkB">
|
||||
<property name="text">
|
||||
<string>Persistent mAh</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QDoubleSpinBox" name="fasOffset_DSB">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>-1.500000000000000</double>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>1.500000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 534 B |
|
Before Width: | Height: | Size: 770 B |
|
Before Width: | Height: | Size: 775 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 396 B |
|
Before Width: | Height: | Size: 507 B |
|
Before Width: | Height: | Size: 415 B |
|
Before Width: | Height: | Size: 849 B |
|
Before Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 539 B |
|
Before Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 894 B |