From aa6a908f8e7cacc45054a6af32a1c0e93547bf61 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 5 Jul 2022 04:08:55 +0100 Subject: [PATCH] AC_InputManager: params always use set method --- libraries/AC_InputManager/AC_InputManager_Heli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_InputManager/AC_InputManager_Heli.cpp b/libraries/AC_InputManager/AC_InputManager_Heli.cpp index 10461b46ec..f78bc1bdd0 100644 --- a/libraries/AC_InputManager/AC_InputManager_Heli.cpp +++ b/libraries/AC_InputManager/AC_InputManager_Heli.cpp @@ -91,7 +91,7 @@ float AC_InputManager_Heli::get_pilot_desired_collective(int16_t control_in) // calculate expo-scaled acro collective // range check expo if (_acro_col_expo > 1.0f) { - _acro_col_expo = 1.0f; + _acro_col_expo.set(1.0f); } if (_acro_col_expo <= 0.0f) {