diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index f1c046b069..ba43ad6796 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -359,12 +359,12 @@ void Plane::airspeed_ratio_update(void) */ void Plane::update_GPS_50Hz(void) { + gps.update(); + // get position from AHRS have_position = ahrs.get_position(current_loc); ahrs.get_relative_position_D_home(relative_altitude); relative_altitude *= -1.0f; - - gps.update(); } /*