+Display telemetry - some enhancements

pull/193/head
Hansi, dl9rdz 2021-09-24 18:09:19 +02:00
rodzic a39479dda7
commit 49bff43090
4 zmienionych plików z 70 dodań i 12 usunięć

Wyświetl plik

@ -44,7 +44,7 @@
# S scan list entry info: l/empty: launch site name, #=entry nr, t=total entries, a=active entries, /: #/t # S scan list entry info: l/empty: launch site name, #=entry nr, t=total entries, a=active entries, /: #/t
# K RS41 kill timer values: Kl launch timer, Kb burst timer, Kc kill countdown # K RS41 kill timer values: Kl launch timer, Kb burst timer, Kc kill countdown
# format: K_4: h:mm k_6: h:mm:ss k_s: sssss, nothing shown for other sonde # format: K_4: h:mm k_6: h:mm:ss k_s: sssss, nothing shown for other sonde
# Mx telemetry value x (t temp p preassure h hyg) [not yet implemented, maybe some day in future] # Mx telemetry value x (t temp p preassure h hyg b battery)
# Gx GPS-related data # Gx GPS-related data
# raw data from GPS: GA, GO, GH, GC: LAtitude, lOngitude, Altutide(Height), Course over ground # raw data from GPS: GA, GO, GH, GC: LAtitude, lOngitude, Altutide(Height), Course over ground
# relative to sonde: GD, GI, GB: Distance, dIrection (absolute), relative Bearing # relative to sonde: GD, GI, GB: Distance, dIrection (absolute), relative Bearing
@ -203,7 +203,7 @@ timeaction=#,#,#
7,0=gV 7,0=gV
7,2=xd= 7,2=xd=
7,4=gD 7,4=gD
7,12=gI° 7,12=gI°
############ ############
@BatteryOLED @BatteryOLED
@ -224,3 +224,18 @@ fonts=0,1
6,0=xTemp: 6,0=xTemp:
6,5=bT C 6,5=bT C
#############
@Meteo
timer=-1,-1,-1
key1action=+,0,F,W
key2action=>,#,#,#
timeaction=#,#,#
fonts=0,1
0,0=Is
0,9=f
1,12=t
2,0=xTelemetry Data
4,0=Mt°C
4,9=Mh%rH
6,0=MphPa
6,11=MbV

Wyświetl plik

@ -44,7 +44,7 @@
# S scan list entry info: l/empty: launch site name, #=entry nr, t=total entries, a=active entries, /: #/t # S scan list entry info: l/empty: launch site name, #=entry nr, t=total entries, a=active entries, /: #/t
# K RS41 kill timer values: Kl launch timer, Kb burst timer, Kc kill countdown # K RS41 kill timer values: Kl launch timer, Kb burst timer, Kc kill countdown
# format: K_4: h:mm k_6: h:mm:ss k_s: sssss, nothing shown for other sonde # format: K_4: h:mm k_6: h:mm:ss k_s: sssss, nothing shown for other sonde
# Mx telemetry value x (t temp p preassure h hyg) [not yet implemented, maybe some day in future] # Mx telemetry value x (t temp p preassure h hyg b batt)
# Gx GPS-related data # Gx GPS-related data
# raw data from GPS: GA, GO, GH, GC: LAtitude, lOngitude, Altutide(Height), Course over ground # raw data from GPS: GA, GO, GH, GC: LAtitude, lOngitude, Altutide(Height), Course over ground
# relative to sonde: GD, GI, GB: Distance, dIrection (absolute), relative Bearing # relative to sonde: GD, GI, GB: Distance, dIrection (absolute), relative Bearing
@ -571,3 +571,32 @@ color=639AFF
color=FF0000,000000 color=FF0000,000000
12.7,0.4=Q4 12.7,0.4=Q4
12.7,18=bVV 12.7,18=bVV
#################
@TelemetryData
scale=22,13
timer=-1,-1,N
key1action=+,0,F,W
key2action=>,#,#,#
timeaction=#,#,0
fonts=5,6
color=FFD700
0,0,10.5=Is
color=0000FF
0,11,-5.5=f
1,0,4=t
1,10.5,-6=c
color=00ff00
2,0,7=L
3,0,7=O
color=FFA500
2,9.5,-7=a
2.8,9.5,-7=vm/s
color=AA5522
3.6,9.5,-7=hkkm/h
color=FFFFFF
4.4,0=xTelemetry Data:
5.3,0=Mt C
5.3,9=Mh%rH
6.5,0=MphPa
6.5,11=MbV

Wyświetl plik

@ -1289,26 +1289,40 @@ void Display::drawSite(DispEntry *de) {
void Display::drawTelemetry(DispEntry *de) { void Display::drawTelemetry(DispEntry *de) {
rdis->setFont(de->fmt); rdis->setFont(de->fmt);
float value=0; float value=0;
memset(buf, ' ', 16);
switch(de->extra[0]) { switch(de->extra[0]) {
case 't': case 't':
value = sonde.si()->d.temperature; value = sonde.si()->d.temperature;
if(value!=0xffff) snprintf(buf, 8, "%3.2f", value); if(!isnan(value)) {
else strcpy(buf, " "); sprintf(buf, "%5.1f", value);
strcat(buf, de->extra+1);
}
buf[5+strlen(de->extra+1)] = 0;
break; break;
case 'p': case 'p':
value = sonde.si()->d.pressure; value = sonde.si()->d.pressure;
if(value!=0xffff) snprintf(buf, 7, "%4.2f", value); if(!isnan(value)) {
else strcpy(buf, " "); if(value>=1000) sprintf(buf, "%6.1f", value);
else sprintf(buf, "%6.2f", value);
strcat(buf, de->extra+1);
}
buf[6+strlen(de->extra+1)] = 0;
break; break;
case 'h': case 'h':
value = sonde.si()->d.relativeHumidity; value = sonde.si()->d.relativeHumidity;
if(value!=0xffff) snprintf(buf, 5, "%3.1f", value); if(!isnan(value)) {
else strcpy(buf, " "); sprintf(buf, "%4.1f", value);
strcat(buf, de->extra+1);
}
buf[4+strlen(de->extra+1)] = 0;
break; break;
case 'b': case 'b':
value = sonde.si()->d.batteryVoltage; value = sonde.si()->d.batteryVoltage;
if(value!=0xffff) snprintf(buf, 5, "%1.2f", value); if(!isnan(value)) {
else strcpy(buf, " "); snprintf(buf, 5, "%4.2f", value);
strcat(buf, de->extra+1);
}
buf[5+strlen(de->extra+1)] = 0;
break; break;
} }
drawString(de,buf); drawString(de,buf);

Wyświetl plik

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde"; const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20210924b"; const char *version_id = "devel20210924c";
const int SPIFFS_MAJOR=2; const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=16; const int SPIFFS_MINOR=16;