AP_OSD: move to airspeed_estimate with pointer

This commit is contained in:
Peter Hall 2020-01-07 00:46:34 +00:00 committed by WickedShell
parent f6897632f8
commit e2c4d453e1

View File

@ -1235,7 +1235,7 @@ void AP_OSD_Screen::draw_aspeed(uint8_t x, uint8_t y)
float aspd = 0.0f;
AP_AHRS &ahrs = AP::ahrs();
WITH_SEMAPHORE(ahrs.get_semaphore());
bool have_estimate = ahrs.airspeed_estimate(&aspd);
bool have_estimate = ahrs.airspeed_estimate(aspd);
if (have_estimate) {
backend->write(x, y, false, "%c%4d%c", SYM_ASPD, (int)u_scale(SPEED, aspd), u_icon(SPEED));
} else {