Fix HDOP and more delay for page refresh after new page
This commit is contained in:
parent
df1bd498ae
commit
34a289048f
|
@ -169,8 +169,10 @@ public:
|
||||||
getdisplay().print("HDOP:");
|
getdisplay().print("HDOP:");
|
||||||
|
|
||||||
GwApi::BoatValue *bv_hdop = pageData.values[1]; // HDOP
|
GwApi::BoatValue *bv_hdop = pageData.values[1]; // HDOP
|
||||||
String sval_hdop = formatValue(bv_hdop, *commonData).svalue;
|
double hdop = formatValue(bv_hdop, *commonData).value * 4; // 4 is factor for UERE (translation in meter)
|
||||||
sval_hdop = sval_hdop + "m";
|
char sval_hdop[20];
|
||||||
|
dtostrf(hdop, 0, 1, sval_hdop); // Only one prefix
|
||||||
|
strcat(sval_hdop, "m");
|
||||||
getdisplay().setCursor(220, 269);
|
getdisplay().setCursor(220, 269);
|
||||||
getdisplay().print(sval_hdop);
|
getdisplay().print(sval_hdop);
|
||||||
|
|
||||||
|
|
|
@ -710,8 +710,8 @@ void OBP60Task(GwApi *api){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Full display update afer a new selected page and 4s wait time
|
// Full display update afer a new selected page and 8s wait time
|
||||||
if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
|
if(millis() > starttime4 + 8000 && delayedDisplayUpdate == true){
|
||||||
starttime1 = millis();
|
starttime1 = millis();
|
||||||
starttime2 = millis();
|
starttime2 = millis();
|
||||||
getdisplay().setFullWindow(); // Set full update
|
getdisplay().setFullWindow(); // Set full update
|
||||||
|
|
Loading…
Reference in New Issue