mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:43:34 +08:00
ekf2: height aid source consistency (#20405)
- working towards keeping all height source (baro/ev/gnss/rng) handling as consistent as possible, possibly refactoring these out into separate classes later
This commit is contained in:
@@ -46,7 +46,7 @@ void Ekf::controlHeightFusion()
|
||||
controlBaroHeightFusion();
|
||||
controlGnssHeightFusion(_gps_sample_delayed);
|
||||
controlRangeHeightFusion();
|
||||
controlEvHeightFusion();
|
||||
controlEvHeightFusion(_ev_sample_delayed);
|
||||
|
||||
checkHeightSensorRefFallback();
|
||||
}
|
||||
@@ -211,14 +211,14 @@ Likelihood Ekf::estimateInertialNavFallingLikelihood() const
|
||||
// Check all the sources agains each other
|
||||
for (unsigned i = 0; i < 6; i++) {
|
||||
if (checks[i].failed_lim) {
|
||||
// There is a chance that the interial nav is falling if one source is failing the test
|
||||
// There is a chance that the inertial nav is falling if one source is failing the test
|
||||
likelihood_medium = true;
|
||||
}
|
||||
|
||||
for (unsigned j = 0; j < 6; j++) {
|
||||
|
||||
if ((checks[i].ref_type != checks[j].ref_type) && checks[i].failed_lim && checks[j].failed_min) {
|
||||
// There is a high chance that the interial nav is falling if two sources are failing the test
|
||||
// There is a high chance that the inertial nav is failing if two sources are failing the test
|
||||
likelihood_high = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user