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:
parent
af46388d6c
commit
7ce72fe571
@ -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
Block a user