mirror of https://github.com/ArduPilot/ardupilot
AP_SmartRTL: params always use set method
This commit is contained in:
parent
a0fc8cc46a
commit
0cb825e64d
|
@ -99,7 +99,7 @@ void AP_SmartRTL::init()
|
|||
}
|
||||
|
||||
// constrain the path length, in case the user decided to make the path unreasonably long.
|
||||
_points_max = constrain_int16(_points_max, 0, SMARTRTL_POINTS_MAX);
|
||||
_points_max.set(constrain_int16(_points_max, 0, SMARTRTL_POINTS_MAX));
|
||||
|
||||
// check if user has disabled SmartRTL
|
||||
if (_points_max == 0 || !is_positive(_accuracy)) {
|
||||
|
|
Loading…
Reference in New Issue