mirror of https://github.com/ArduPilot/ardupilot
AP_Beacon: params always use set method
This commit is contained in:
parent
6e6fcf4880
commit
cacbd2579d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue