Browse Source

AP_SmartRTL: params always use set method

apm_2208
Iampete1 3 years ago committed by Peter Hall
parent
commit
0cb825e64d
  1. 2
      libraries/AP_SmartRTL/AP_SmartRTL.cpp

2
libraries/AP_SmartRTL/AP_SmartRTL.cpp

@ -99,7 +99,7 @@ void AP_SmartRTL::init() @@ -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…
Cancel
Save