mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 22:47:35 +08:00
EKF: fix compile error
This commit is contained in:
committed by
Lorenz Meier
parent
f7cae7f3ab
commit
21e7734149
+1
-1
@@ -797,7 +797,7 @@ void Ekf::get_ekf_vel_accuracy(float *ekf_evh, float *ekf_evv, bool *dead_reckon
|
||||
// The reason is that complete rejection of measurements is often be casued by heading misalignment or inertial sensing errors
|
||||
// and using state variances for accuracy reporting provides an overly optimistic assessment in these situations
|
||||
float vel_err_alt = 0.0f;
|
||||
if (dead_reckoning) {
|
||||
if (is_dead_reckoning) {
|
||||
if (_control_status.flags.opt_flow) {
|
||||
float gndclearance = math::max(_params.rng_gnd_clearance, 0.1f);
|
||||
vel_err_alt = math::max((_terrain_vpos - _state.pos(2)), gndclearance) * sqrtf(_flow_innov[0]*_flow_innov[0] + _flow_innov[1]*_flow_innov[1]);
|
||||
|
||||
Reference in New Issue
Block a user