AR_Motors: params always use set method

This commit is contained in:
Iampete1 2022-07-05 04:08:57 +01:00 committed by Peter Hall
parent 5893df9d9e
commit 67fd8a1e49
1 changed files with 3 additions and 3 deletions

View File

@ -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