mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 11:10:35 +08:00
Random style fixes in the code
This commit is contained in:
committed by
Mathieu Bresciani
parent
5d6a72e383
commit
aa96fa6d9e
@@ -367,6 +367,7 @@ void EstimatorInterface::setOpticalFlowData(const flowSample& flow)
|
||||
// when there are other aiding sources available
|
||||
const float flow_rate_magnitude = flow.flow_xy_rad.norm() / delta_time;
|
||||
flow_magnitude_good = (flow_rate_magnitude <= _flow_max_rate);
|
||||
|
||||
} else {
|
||||
// protect against overflow caused by division with very small delta_time
|
||||
delta_time = delta_time_min;
|
||||
|
||||
Reference in New Issue
Block a user