Issue #488 : Companion part done.
This commit is contained in:
@@ -841,7 +841,7 @@ class ModelData {
|
|||||||
TimerData timers[2];
|
TimerData timers[2];
|
||||||
bool thrTrim; // Enable Throttle Trim
|
bool thrTrim; // Enable Throttle Trim
|
||||||
bool thrExpo; // Enable Throttle Expo
|
bool thrExpo; // Enable Throttle Expo
|
||||||
unsigned int trimInc; // Trim Increments
|
int trimInc; // Trim Increments
|
||||||
bool disableThrottleWarning;
|
bool disableThrottleWarning;
|
||||||
|
|
||||||
unsigned int beepANACenter; // 1<<0->A1.. 1<<6->A7
|
unsigned int beepANACenter; // 1<<0->A1.. 1<<6->A7
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ t_Er9xModelData::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.funcSw[0].func = FuncInstantTrim;
|
c9x.funcSw[0].func = FuncInstantTrim;
|
||||||
if (trimSw) {
|
if (trimSw) {
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ t_Ersky9xModelData_v10::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.funcSw[0].func = FuncInstantTrim;
|
c9x.funcSw[0].func = FuncInstantTrim;
|
||||||
if (trimSw) {
|
if (trimSw) {
|
||||||
@@ -654,7 +654,7 @@ t_Ersky9xModelData_v11::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
c9x.moduleData[0].channelsCount = 8 + 2 * ppmNCH;
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.funcSw[0].func = FuncInstantTrim;
|
c9x.funcSw[0].func = FuncInstantTrim;
|
||||||
if (trimSw) {
|
if (trimSw) {
|
||||||
|
|||||||
@@ -458,7 +458,7 @@ t_Gruvin9xModelData_v102::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -529,7 +529,7 @@ t_Gruvin9xModelData_v103::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -600,7 +600,7 @@ t_Gruvin9xModelData_v105::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -691,7 +691,7 @@ t_Gruvin9xModelData_v106::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc-2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ t_Open9xGruvin9xModelData_v207::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -538,7 +538,7 @@ t_Open9xGruvin9xModelData_v208::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -627,7 +627,7 @@ t_Open9xGruvin9xModelData_v209::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -717,7 +717,7 @@ t_Open9xGruvin9xModelData_v210::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -804,7 +804,7 @@ t_Open9xGruvin9xModelData_v211::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
|
|||||||
@@ -760,7 +760,7 @@ t_Open9xArmModelData_v208::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -849,7 +849,7 @@ t_Open9xArmModelData_v209::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -939,7 +939,7 @@ t_Open9xArmModelData_v210::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -1023,7 +1023,7 @@ t_Open9xArmModelData_v211::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
@@ -1110,7 +1110,7 @@ t_Open9xArmModelData_v212::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
|
|||||||
@@ -950,7 +950,7 @@ t_Open9xModelData_v201::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.thrExpo = thrExpo;
|
c9x.thrExpo = thrExpo;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1024,7 +1024,7 @@ t_Open9xModelData_v202::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter,
|
c9x.beepANACenter = beepANACenter,
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1100,7 +1100,7 @@ t_Open9xModelData_v203::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1174,7 +1174,7 @@ t_Open9xModelData_v204::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1253,7 +1253,7 @@ t_Open9xModelData_v205::operator ModelData ()
|
|||||||
}
|
}
|
||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1339,7 +1339,7 @@ t_Open9xModelData_v208::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1432,7 +1432,7 @@ t_Open9xModelData_v209::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1526,7 +1526,7 @@ t_Open9xModelData_v210::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
@@ -1614,7 +1614,7 @@ t_Open9xModelData_v211::operator ModelData ()
|
|||||||
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
c9x.moduleData[0].channelsCount = 8 + (2 * ppmNCH);
|
||||||
c9x.thrTrim = thrTrim;
|
c9x.thrTrim = thrTrim;
|
||||||
c9x.disableThrottleWarning=disableThrottleWarning;
|
c9x.disableThrottleWarning=disableThrottleWarning;
|
||||||
c9x.trimInc = trimInc;
|
c9x.trimInc = trimInc - 2;
|
||||||
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
c9x.moduleData[0].ppmDelay = 300 + 50 * ppmDelay;
|
||||||
c9x.beepANACenter = beepANACenter;
|
c9x.beepANACenter = beepANACenter;
|
||||||
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
c9x.moduleData[0].ppmPulsePol = pulsePol;
|
||||||
|
|||||||
@@ -1851,7 +1851,11 @@ Open9xModelDataNew::Open9xModelDataNew(ModelData & modelData, BoardEnum board, u
|
|||||||
else
|
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 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));
|
internalField.Append(new BoolField<1>(modelData.disableThrottleWarning));
|
||||||
|
|
||||||
if (IS_TARANIS(board) || (IS_ARM(board) && version >= 216))
|
if (IS_TARANIS(board) || (IS_ARM(board) && version >= 216))
|
||||||
|
|||||||
@@ -476,7 +476,7 @@ void Setup::on_extendedTrims_toggled(bool checked)
|
|||||||
|
|
||||||
void Setup::on_trimIncrement_currentIndexChanged(int index)
|
void Setup::on_trimIncrement_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
model.trimInc = index;
|
model.trimInc = index-2;
|
||||||
emit modified();
|
emit modified();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -535,7 +535,7 @@ void Setup::update()
|
|||||||
ui->throttleWarning->setChecked(model.disableThrottleWarning);
|
ui->throttleWarning->setChecked(model.disableThrottleWarning);
|
||||||
|
|
||||||
//trim inc, thro trim, thro expo, instatrim
|
//trim inc, thro trim, thro expo, instatrim
|
||||||
ui->trimIncrement->setCurrentIndex(model.trimInc);
|
ui->trimIncrement->setCurrentIndex(model.trimInc+2);
|
||||||
ui->throttleTrim->setChecked(model.thrTrim);
|
ui->throttleTrim->setChecked(model.thrTrim);
|
||||||
ui->extendedLimits->setChecked(model.extendedLimits);
|
ui->extendedLimits->setChecked(model.extendedLimits);
|
||||||
ui->extendedTrims->setChecked(model.extendedTrims);
|
ui->extendedTrims->setChecked(model.extendedTrims);
|
||||||
|
|||||||
Reference in New Issue
Block a user