diff --git a/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp b/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp index 620b54662e..e9fac89275 100644 --- a/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp +++ b/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp @@ -121,7 +121,7 @@ void AP_LTM_Telem::send_Sframe(void) const uint16_t amp = (uint16_t) roundf(current * 100.0f); // current sensor (expects value in hundredth of A) // airspeed in m/s if available and enabled - even if not used - otherwise send 0 - const AP_Airspeed *aspeed = AP::ahrs().get_airspeed(); + const AP_Airspeed *aspeed = AP::airspeed(); uint8_t airspeed = 0; // airspeed sensor (m/s) if (aspeed && aspeed->enabled()) { airspeed = (uint8_t) roundf(aspeed->get_airspeed());