Switch to TWD

This commit is contained in:
Scorgan01 2025-06-06 10:17:11 +02:00 committed by GitHub
parent bf4dff45b4
commit 9f79a7d4bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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); // <degree> symbol