height counter needs to be updated with ev counter value when our primary height source is set to ev

This commit is contained in:
Nic
2017-01-05 21:47:13 -08:00
parent 3c4c09593f
commit ec1a14bc6b
+2 -1
View File
@@ -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;
}