From 9f79a7d4bc505ae5f07adb9df47a032bd04dc342 Mon Sep 17 00:00:00 2001 From: Scorgan01 <145987006+Scorgan01@users.noreply.github.com> Date: Fri, 6 Jun 2025 10:17:11 +0200 Subject: [PATCH] Switch to TWD --- lib/obp60task/PageWindPlot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/obp60task/PageWindPlot.cpp b/lib/obp60task/PageWindPlot.cpp index 1959d9d..a116e66 100644 --- a/lib/obp60task/PageWindPlot.cpp +++ b/lib/obp60task/PageWindPlot.cpp @@ -151,8 +151,8 @@ public: } } - // Store wind value in buffer - windValues.add(int((dataValue[2] * radToDeg) + 0.5)); // Store TWA value (degree) in buffer (rounded to integer) + // Store TWD wind value in buffer + windValues.add(int((dataValue[0] * radToDeg) + 0.5)); // Store TWD value (degree) in buffer (rounded to integer) count = windValues.size(); // Get number of valid elements in buffer; maximum is cHeight // specify and check chart border values @@ -226,7 +226,7 @@ public: // chart labels getdisplay().setFont(&Ubuntu_Bold10pt7b); getdisplay().setCursor(xCenter - 68, yOffset - 3); - getdisplay().print(dataName[2]); // Wind name + getdisplay().print(dataName[0]); // Wind name getdisplay().setCursor(xCenter - 18, yOffset - 3); getdisplay().print(wndCenter); // Wind center value getdisplay().drawCircle(xCenter + 19, 63, 2, commonData->fgcolor); // symbol