diff --git a/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp b/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp index 83e6abe6f1..c9267b1985 100644 --- a/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp +++ b/libraries/AP_LTM_Telem/AP_LTM_Telem.cpp @@ -74,7 +74,7 @@ void AP_LTM_Telem::send_Gframe(void) ahrs.get_relative_position_D_home(alt_ahrs); alt = (int32_t) roundf(-alt_ahrs * 100.0); // altitude (cm) Location loc; - if (ahrs.get_position(loc)) { + if (ahrs.get_location(loc)) { lat = loc.lat; lon = loc.lng; gndspeed = (uint8_t) roundf(gps.ground_speed());