From 67fd8a1e49ae59882ba69525a1f290934292f1e9 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 5 Jul 2022 04:08:57 +0100 Subject: [PATCH] AR_Motors: params always use set method --- libraries/AR_Motors/AP_MotorsUGV.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AR_Motors/AP_MotorsUGV.cpp b/libraries/AR_Motors/AP_MotorsUGV.cpp index a32be13299..7939b69e81 100644 --- a/libraries/AR_Motors/AP_MotorsUGV.cpp +++ b/libraries/AR_Motors/AP_MotorsUGV.cpp @@ -494,9 +494,9 @@ bool AP_MotorsUGV::pre_arm_check(bool report) const // sanity check parameters void AP_MotorsUGV::sanity_check_parameters() { - _throttle_min = constrain_int16(_throttle_min, 0, 20); - _throttle_max = constrain_int16(_throttle_max, 30, 100); - _vector_angle_max = constrain_float(_vector_angle_max, 0.0f, 90.0f); + _throttle_min.set(constrain_int16(_throttle_min, 0, 20)); + _throttle_max.set(constrain_int16(_throttle_max, 30, 100)); + _vector_angle_max.set(constrain_float(_vector_angle_max, 0.0f, 90.0f)); } // setup pwm output type