Correct height fusion flag when using sensor other than baro

This commit is contained in:
devbharat
2016-05-14 21:17:29 +10:00
committed by Paul Riseborough
parent 6d20a426e0
commit d3bad9fdb0
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -406,6 +406,8 @@ bool Ekf::initialiseFilter(void)
}
}
// warnx("_params.fusion_mode & MASK_USE_EVPOS %d", (int)(_params.fusion_mode & MASK_USE_EVPOS));
// warnx("_primary_hgt_source == VDIST_SENSOR_EV %d", (int)(_primary_hgt_source == VDIST_SENSOR_EV));
// set the default height source from the adjustable parameter
if (_hgt_counter == 0) {
if (_params.fusion_mode & MASK_USE_EVPOS) {