Browse Source

AP_OSD: fixed sign of altitude

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
7ce72fe571
  1. 2
      libraries/AP_OSD/AP_OSD_Screen.cpp

2
libraries/AP_OSD/AP_OSD_Screen.cpp

@ -210,7 +210,7 @@ void AP_OSD_Screen::draw_altitude(uint8_t x, uint8_t y) @@ -210,7 +210,7 @@ void AP_OSD_Screen::draw_altitude(uint8_t x, uint8_t y)
{
float alt;
AP::ahrs().get_relative_position_D_home(alt);
backend->write(x, y, false, "%4.0f%c", alt, SYM_ALT_M);
backend->write(x, y, false, "%4.0f%c", -alt, SYM_ALT_M);
}
void AP_OSD_Screen::draw_bat_volt(uint8_t x, uint8_t y)

Loading…
Cancel
Save