AP_OSD: display --- when no airspeed available

This commit is contained in:
Andrew Tridgell 2018-07-05 09:32:09 +10:00
parent f44fe31c23
commit 88987608ae

View File

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