5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-05 15:38:29 -04:00

AP_OSD: fixed sign of altitude

This commit is contained in:
Andrew Tridgell 2018-07-04 18:16:39 +10:00
parent af46388d6c
commit 7ce72fe571

View File

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