mirror of https://github.com/ArduPilot/ardupilot
AP_OSD: fixed sign of altitude
This commit is contained in:
parent
141b9703a9
commit
76bf630efd
|
@ -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…
Reference in New Issue