Display of Min/Max for telemetry instead of an amplitude and a Calib value

This commit is contained in:
bsongis
2012-02-04 13:03:50 +00:00
parent 1f562bfda4
commit 064d0eeb20
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1872,7 +1872,7 @@ void menuProcTelemetry(uint8_t event)
if(s_pgOfs<subN) {
y=(subN-s_pgOfs)*FH;
lcd_puts_P(4, y, STR_MAX);
putsTelemetryValue(8*FW, y, g_model.frsky.channels[i].ratio, g_model.frsky.channels[i].type, (sub==subN && m_posHorz==0 ? blink:0)|NO_UNIT|LEFT);
putsTelemetryChannel(8*FW, y, i, 255, (sub==subN && m_posHorz==0 ? blink:0)|NO_UNIT|LEFT);
lcd_putsnAtt(lcd_lastPos, y, STR_VTELEMUNIT+LEN_VTELEMUNIT*g_model.frsky.channels[i].type, LEN_VTELEMUNIT, (sub==subN && m_posHorz==1 ? blink:0));
if (sub==subN && (s_editMode>0 || p1valdiff)) {
if (m_posHorz == 0)
@@ -1885,8 +1885,8 @@ void menuProcTelemetry(uint8_t event)
if(s_pgOfs<subN) {
y=(subN-s_pgOfs)*FH;
lcd_puts_P(4, y, STR_CALIB);
putsTelemetryChannel(8*FW, y, i, frskyTelemetry[i].value, (sub==subN ? blink:0)|LEFT);
lcd_puts_P(4, y, STR_MIN);
putsTelemetryChannel(8*FW, y, i, 0, (sub==subN ? blink:0)|LEFT);
if(sub==subN) CHECK_INCDEC_MODELVAR(event, g_model.frsky.channels[i].offset, -127, 127);
}
subN++;
+1 -1
View File
@@ -106,7 +106,7 @@ const pm_char STR_CV[] PROGMEM = TR_CV;
const pm_char STR_SW[] PROGMEM = TR_SW;
const pm_char STR_ACHANNEL[] PROGMEM = TR_ACHANNEL;
const pm_char STR_MAX[] PROGMEM = TR_MAX;
const pm_char STR_CALIB[] PROGMEM = TR_CALIB;
const pm_char STR_MIN[] PROGMEM = TR_MIN;
const pm_char STR_BAR[] PROGMEM = TR_BAR;
const pm_char STR_ALARM[] PROGMEM = TR_ALARM;
const pm_char STR_USRPROTO[] PROGMEM = TR_USRPROTO;
+1 -1
View File
@@ -184,7 +184,7 @@ extern const pm_char STR_CV[];
extern const pm_char STR_SW[];
extern const pm_char STR_ACHANNEL[];
extern const pm_char STR_MAX[];
extern const pm_char STR_CALIB[];
extern const pm_char STR_MIN[];
extern const pm_char STR_BAR[];
extern const pm_char STR_ALARM[];
extern const pm_char STR_USRPROTO[];
+1 -1
View File
@@ -172,7 +172,7 @@
#define TR_SW "SW"
#define TR_ACHANNEL "A channel"
#define TR_MAX "Max"
#define TR_CALIB "Calib"
#define TR_MIN "Min"
#define TR_BAR "Bar"
#define TR_ALARM "Alarm"
#define TR_USRPROTO "UsrProto"
+1 -1
View File
@@ -172,7 +172,7 @@
#define TR_SW "SW"
#define TR_ACHANNEL "A voie"
#define TR_MAX "Max"
#define TR_CALIB "Calib"
#define TR_MIN "Min"
#define TR_BAR "Bar"
#define TR_ALARM "Alarme"
#define TR_USRPROTO "UsrProto"