1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-24 11:13:06 +01:00

Implemented string boatdata value WPName for next waypoint

This commit is contained in:
2025-08-20 21:33:08 +02:00
parent 318a218470
commit ae9334236b
7 changed files with 29 additions and 11 deletions

View File

@@ -133,6 +133,8 @@ public:
epd->setCursor(360-w, 257);
epd->print(sval_btw);
GwApi::BoatValue *bv_wpname = pageData.values[4]; // WPName
bool valid = bv_cog->valid && bv_btw->valid;
// XTETrack view
@@ -144,7 +146,7 @@ public:
String sval_wpname = "no data";
if (valid) {
sval_wpname = "Tonne 122";
sval_wpname = bv_wpname->svalue;
}
epd->setFont(&Ubuntu_Bold10pt8b);
@@ -225,7 +227,7 @@ PageDescription registerPageXTETrack(
"XTETrack", // Page name
createPage, // Action
0, // Number of bus values depends on selection in Web configuration
{"XTE", "COG", "DTW", "BTW"}, // Bus values we need in the page
{"XTE", "COG", "DTW", "BTW", "WPName"}, // Bus values we need in the page
true // Show display header on/off
);