From 340432e2cf20bb362ba889e19daf97bd65f76f7e Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Aug 2017 12:45:44 +0200 Subject: [PATCH] legacy EKF: Use correct constants --- src/examples/ekf_att_pos_estimator/estimator_22states.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/ekf_att_pos_estimator/estimator_22states.cpp b/src/examples/ekf_att_pos_estimator/estimator_22states.cpp index f64a6ed451..c9dcc0322e 100644 --- a/src/examples/ekf_att_pos_estimator/estimator_22states.cpp +++ b/src/examples/ekf_att_pos_estimator/estimator_22states.cpp @@ -113,8 +113,8 @@ AttPosEKF::AttPosEKF() : varInnovRng(0.0f), VtasMeas(0.0f), magDeclination(0.0f), - latRef(0.0f), - lonRef(-M_PI_F), + latRef(0.0), + lonRef(-M_PI), hgtRef(0.0f), refSet(false), covSkipCount(0),