From 88987608ae8841f86d0ac15f841dbc7e25f4c78d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jul 2018 09:32:09 +1000 Subject: [PATCH] AP_OSD: display --- when no airspeed available --- libraries/AP_OSD/AP_OSD_Screen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_OSD/AP_OSD_Screen.cpp b/libraries/AP_OSD/AP_OSD_Screen.cpp index 7872d73995..91f828625a 100644 --- a/libraries/AP_OSD/AP_OSD_Screen.cpp +++ b/libraries/AP_OSD/AP_OSD_Screen.cpp @@ -431,6 +431,8 @@ void AP_OSD_Screen::draw_aspeed(uint8_t x, uint8_t y) float aspd = 0.0f; if (AP::ahrs().airspeed_estimate(&aspd)) { backend->write(x, y, false, "A%4.0f%c", aspd * 3.6, SYM_KMH); + } else { + backend->write(x, y, false, "A ---%c", SYM_KMH); } }