diff --git a/libraries/AP_Beacon/AP_Beacon_Backend.cpp b/libraries/AP_Beacon/AP_Beacon_Backend.cpp index f0dd4191bd..66ec41c230 100644 --- a/libraries/AP_Beacon/AP_Beacon_Backend.cpp +++ b/libraries/AP_Beacon/AP_Beacon_Backend.cpp @@ -90,7 +90,7 @@ Vector3f AP_Beacon_Backend::correct_for_orient_yaw(const Vector3f &vector) // check for change in parameter value and update constants if (orient_yaw_deg != _frontend.orient_yaw) { - _frontend.orient_yaw = wrap_180(_frontend.orient_yaw.get()); + _frontend.orient_yaw.set(wrap_180(_frontend.orient_yaw.get())); // calculate rotation constants orient_yaw_deg = _frontend.orient_yaw;