Fix compass orientation, speed formatting

replace/41ca0147396c3d63e0bb788cd2e12ac62f1c9b13
Niccolò Izzo 2021-02-21 20:38:23 +01:00
rodzic d0e8d15389
commit eb0a5ee9f0
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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)};

Wyświetl plik

@ -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,