Skip to content

Commit

Permalink
EKF: Don't assume large position uncertainty when starting optical fl…
Browse files Browse the repository at this point in the history
…ow nav
  • Loading branch information
priseborough committed May 7, 2018
1 parent e26711a commit bdf5b3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion EKF/ekf_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ bool Ekf::resetPosition()

}

setDiag(P, 7, 8, sq(_params.pos_noaid_noise));
// estimate is relative to initial positon in this mode, so we start with zero error.
zeroCols(P,7,8);
zeroRows(P,7,8);

} else {
// Used when falling back to non-aiding mode of operation
Expand Down

0 comments on commit bdf5b3e

Please sign in to comment.