mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-15 10:29:21 +08:00
EKF: enable optical flow use to bootstrap
This commit is contained in:
committed by
Lorenz Meier
parent
3c74dc2ce1
commit
b861594d0b
@@ -369,9 +369,7 @@ void EstimatorInterface::setOpticalFlowData(uint64_t time_usec, flow_message *fl
|
||||
flow_magnitude_good = (flow_rate_magnitude <= _flow_max_rate);
|
||||
}
|
||||
|
||||
bool relying_on_flow = _control_status.flags.opt_flow
|
||||
&& !_control_status.flags.gps
|
||||
&& !_control_status.flags.ev_pos;
|
||||
bool relying_on_flow = !_control_status.flags.gps && !_control_status.flags.ev_pos;
|
||||
|
||||
// check quality metric
|
||||
bool flow_quality_good = (flow->quality >= _params.flow_qual_min);
|
||||
|
||||
Reference in New Issue
Block a user