Skip to content

Commit

Permalink
AP_NavEKF2: init rngOnGnd to 5cm to avoid div-by-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Aug 26, 2021
1 parent ff58054 commit b524094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_NavEKF2/AP_NavEKF2_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ void NavEKF2_core::InitialiseVariables()
gpsPosAccuracy = 0.0f;
gpsHgtAccuracy = 0.0f;
baroHgtOffset = 0.0f;
rngOnGnd = 0.05f;
yawResetAngle = 0.0f;
lastYawReset_ms = 0;
tiltErrFilt = 1.0f;
Expand Down

0 comments on commit b524094

Please sign in to comment.