Issue 73 fixed
Issue 74 fixed
This commit is contained in:
+1
-1
@@ -738,7 +738,7 @@ void menuProcModel(uint8_t event)
|
|||||||
}
|
}
|
||||||
#ifdef DSM2
|
#ifdef DSM2
|
||||||
else if (protocol == PROTO_DSM2) {
|
else if (protocol == PROTO_DSM2) {
|
||||||
if (m_posHorz > 1) m_posHorz = 1;
|
if (attr && m_posHorz > 1) m_posHorz = 1;
|
||||||
int8_t x = limit((int8_t)0, (int8_t)g_model.ppmNCH, (int8_t)2);
|
int8_t x = limit((int8_t)0, (int8_t)g_model.ppmNCH, (int8_t)2);
|
||||||
g_model.ppmNCH = x;
|
g_model.ppmNCH = x;
|
||||||
lcd_putsiAtt(MODEL_PARAM_OFS+5*FW, y, STR_DSM2MODE, x, (attr && m_posHorz==1) ? blink : 0);
|
lcd_putsiAtt(MODEL_PARAM_OFS+5*FW, y, STR_DSM2MODE, x, (attr && m_posHorz==1) ? blink : 0);
|
||||||
|
|||||||
+1
-3
@@ -1041,7 +1041,7 @@ void checkTHR()
|
|||||||
int16_t lowLim = THRCHK_DEADBAND - 1024 ;
|
int16_t lowLim = THRCHK_DEADBAND - 1024 ;
|
||||||
#else
|
#else
|
||||||
getADC_single(); // if thr is down - do not display warning at all
|
getADC_single(); // if thr is down - do not display warning at all
|
||||||
int16_t lowLim = THRCHK_DEADBAND + g_eeGeneral.calibMid[thrchn] - g_eeGeneral.calibSpanNeg[thrchn];
|
int16_t lowLim = (g_eeGeneral.throttleReversed ? THRCHK_DEADBAND - g_eeGeneral.calibMid[thrchn] - g_eeGeneral.calibSpanPos[thrchn] : THRCHK_DEADBAND + g_eeGeneral.calibMid[thrchn] - g_eeGeneral.calibSpanNeg[thrchn]);
|
||||||
#endif
|
#endif
|
||||||
int16_t v = anaIn(thrchn);
|
int16_t v = anaIn(thrchn);
|
||||||
if (g_eeGeneral.throttleReversed) v = - v;
|
if (g_eeGeneral.throttleReversed) v = - v;
|
||||||
@@ -2012,11 +2012,9 @@ void perOut(uint8_t tick10ms)
|
|||||||
int16_t v = 0;
|
int16_t v = 0;
|
||||||
if (s_perout_mode != e_perout_mode_normal) {
|
if (s_perout_mode != e_perout_mode_normal) {
|
||||||
if (!sw || k >= NUM_STICKS || (k == THR_STICK && g_model.thrTrim)) {
|
if (!sw || k >= NUM_STICKS || (k == THR_STICK && g_model.thrTrim)) {
|
||||||
printf("CONTINUE\n");
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("LIGNE AJOUTEE\n");
|
|
||||||
if (!(s_perout_mode & e_perout_mode_nosticks))
|
if (!(s_perout_mode & e_perout_mode_nosticks))
|
||||||
v = anas[k];
|
v = anas[k];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user