diff --git a/libraries/AP_Soaring/AP_Soaring.cpp b/libraries/AP_Soaring/AP_Soaring.cpp index f27963c6d4..1cfe11a995 100644 --- a/libraries/AP_Soaring/AP_Soaring.cpp +++ b/libraries/AP_Soaring/AP_Soaring.cpp @@ -141,7 +141,7 @@ SoaringController::SoaringController(AP_AHRS &ahrs, AP_SpdHgtControl &spdHgt, co void SoaringController::get_target(Location &wp) { wp = _prev_update_location; - location_offset(wp, _ekf.X[2], _ekf.X[3]); + wp.offset(_ekf.X[2], _ekf.X[3]); } bool SoaringController::suppress_throttle()