Skip to content

Commit

Permalink
Remove if statement that can not be entered
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilritz authored and bresch committed Dec 11, 2019
1 parent 6941777 commit 4bc6ae6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions EKF/ekf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,7 @@ bool Ekf::initialiseFilter()
initialiseCovariance();

// update the yaw angle variance using the variance of the measurement
if (_control_status.flags.ev_yaw) {
// using error estimate from external vision data TODO: this is never true
increaseQuatYawErrVariance(sq(fmaxf(_ev_sample_delayed.angErr, 1.0e-2f)));
} else if (_params.mag_fusion_type <= MAG_FUSE_TYPE_3D) {
if (_params.mag_fusion_type <= MAG_FUSE_TYPE_3D) {
// using magnetic heading tuning parameter
increaseQuatYawErrVariance(sq(fmaxf(_params.mag_heading_noise, 1.0e-2f)));
}
Expand Down

0 comments on commit 4bc6ae6

Please sign in to comment.