kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fix compass orientation, speed formatting
rodzic
d0e8d15389
commit
eb0a5ee9f0
|
@ -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)};
|
||||
|
|
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue