From cacbd2579d939fb6b8ebc8d4130abc409325bbf9 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 5 Jul 2022 04:08:56 +0100 Subject: [PATCH] AP_Beacon: params always use set method --- libraries/AP_Beacon/AP_Beacon_Backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;