AP_OSD: fixed sign of altitude

This commit is contained in:
Andrew Tridgell 2018-07-04 18:16:39 +10:00
parent 141b9703a9
commit 76bf630efd

View File

@ -210,7 +210,7 @@ void AP_OSD_Screen::draw_altitude(uint8_t x, uint8_t y)
{ {
float alt; float alt;
AP::ahrs().get_relative_position_D_home(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) void AP_OSD_Screen::draw_bat_volt(uint8_t x, uint8_t y)