mirror of https://github.com/ArduPilot/ardupilot
AP_OpticalFlow: params always use set method
This commit is contained in:
parent
2b69e69f7e
commit
1a3391ebef
|
@ -114,7 +114,7 @@ void AP_OpticalFlow_SITL::update(void)
|
|||
// cope with updates to the delay control
|
||||
if (_sitl->flow_delay > 0 &&
|
||||
(uint8_t)(_sitl->flow_delay) > ARRAY_SIZE(optflow_data)) {
|
||||
_sitl->flow_delay = ARRAY_SIZE(optflow_data);
|
||||
_sitl->flow_delay.set(ARRAY_SIZE(optflow_data));
|
||||
}
|
||||
optflow_delay = _sitl->flow_delay;
|
||||
for (uint8_t i=0; i<optflow_delay; i++) {
|
||||
|
|
Loading…
Reference in New Issue