Skip to content

Commit

Permalink
Remove switch to ev hgt during filter initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilritz authored and bresch committed Dec 11, 2019
1 parent 4bc6ae6 commit cd030e7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions EKF/ekf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ bool Ekf::initialiseFilter()
_state.pos(2) = -math::max(_rng_filt_state * _R_rng_to_earth_2_2, _params.rng_gnd_clearance);
ECL_INFO_TIMESTAMPED("EKF using range finder height - commencing alignment");

} else if (_control_status.flags.ev_hgt) {
// if we are using external vision data for height, then the vertical position state needs to be reset
// because the initialisation position is not the zero datum
resetHeight();

}

// try to initialise the terrain estimator
Expand Down

0 comments on commit cd030e7

Please sign in to comment.