From eb0a5ee9f01e1afce365702f591932d1f9ba7c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Sun, 21 Feb 2021 20:38:23 +0100 Subject: [PATCH] Fix compass orientation, speed formatting --- openrtx/src/graphics.c | 1 - openrtx/src/ui/ui_menu.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/openrtx/src/graphics.c b/openrtx/src/graphics.c index 31ba96f3..239b43b1 100644 --- a/openrtx/src/graphics.c +++ b/openrtx/src/graphics.c @@ -699,7 +699,6 @@ void gfx_drawGPScompass(point_t start, if (active) { // Needle - deg = -deg; deg -= 90.0f; point_t p1 = {circle_pos.x + needle_radius * COS(deg), circle_pos.y + needle_radius * SIN(deg)}; diff --git a/openrtx/src/ui/ui_menu.c b/openrtx/src/ui/ui_menu.c index d03a95dd..3492340c 100644 --- a/openrtx/src/ui/ui_menu.c +++ b/openrtx/src/ui/ui_menu.c @@ -354,7 +354,7 @@ void _ui_drawMenuGPS() snprintf(lon_buf, 12, "%8.6f", last_state.gps_data.longitude); gfx_print(layout.line2_pos, lon_buf, layout.top_font, TEXT_ALIGN_RIGHT, color_white); - snprintf(data_buf, 25, "S %5.2fkm/h A %4.1fm", + snprintf(data_buf, 25, "S %4.1fkm/h A %4.1fm", last_state.gps_data.speed, last_state.gps_data.altitude); gfx_print(layout.bottom_pos, data_buf, layout.bottom_font, TEXT_ALIGN_CENTER,