mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 13:57:35 +08:00
height counter needs to be updated with ev counter value when our primary height source is set to ev
This commit is contained in:
+2
-1
@@ -341,7 +341,8 @@ bool Ekf::initialiseFilter(void)
|
||||
}
|
||||
|
||||
} else if (_primary_hgt_source == VDIST_SENSOR_EV) {
|
||||
// do nothing becasue vision data is checked elsewhere
|
||||
// vision data counters are sampled elsewhere
|
||||
_hgt_counter = _ev_counter;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user