From b370131505fb3b235a757ccfb62a006586b345d5 Mon Sep 17 00:00:00 2001 From: Alexander Malishev Date: Wed, 4 Jul 2018 10:14:04 +0400 Subject: [PATCH] AP_OSD: fixed vertical speed item --- libraries/AP_OSD/AP_OSD_Screen.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_OSD/AP_OSD_Screen.cpp b/libraries/AP_OSD/AP_OSD_Screen.cpp index f7dc2d7e57..7afa089d31 100644 --- a/libraries/AP_OSD/AP_OSD_Screen.cpp +++ b/libraries/AP_OSD/AP_OSD_Screen.cpp @@ -422,11 +422,10 @@ void AP_OSD_Screen::draw_vspeed(uint8_t x, uint8_t y) sym = SYM_UP; } else if (vspd >= -3.0f) { sym = SYM_DOWN; - vspd = -vspd; } else { sym = SYM_DOWN_DOWN; - vspd = -vspd; } + vspd = fabsf(vspd); backend->write(x, y, false, "%c%2.0f%c", sym, vspd, SYM_MS); }