AIS map improv (#2725)

* AIS map improv

* format code mismatch with vc
This commit is contained in:
Totoo
2025-06-29 22:47:18 +02:00
committed by GitHub
parent 47f231ad63
commit 54f9ff116b
4 changed files with 50 additions and 3 deletions

View File

@@ -110,6 +110,7 @@ GeoPos::GeoPos(
text_alt_unit.set(altitude_unit_ ? "m" : "ft");
if (speed_unit_ == KMPH) text_speed_unit.set("kmph");
if (speed_unit_ == MPH) text_speed_unit.set("mph");
if (speed_unit_ == KNOTS) text_speed_unit.set("knots");
if (speed_unit_ == HIDDEN) {
text_speed_unit.hidden(true);
label_spd_position.hidden(true);

View File

@@ -81,6 +81,7 @@ class GeoPos : public View {
NONE = 0,
MPH,
KMPH,
KNOTS,
HIDDEN = 255
};
@@ -134,7 +135,7 @@ class GeoPos : public View {
{12 * 8, 0 * 16, 2 * 8, 16},
""};
Text text_speed_unit{
{25 * 8, 0 * 16, 4 * 8, 16},
{25 * 8, 0 * 16, 5 * 8, 16},
""};
NumberField field_lat_degrees{