aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-13 15:39:35 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-13 15:39:35 +0200
commite8855423bea0938c607ed2ab8bde5ebec094b5a6 (patch)
tree8a2b57f56fbc7e7640982d4b44bf304b4e1c8235
parent3d505c6f42779eddc983e0f1a25c59d998cdd041 (diff)
downloadpx4-firmware-e8855423bea0938c607ed2ab8bde5ebec094b5a6.tar.gz
px4-firmware-e8855423bea0938c607ed2ab8bde5ebec094b5a6.tar.bz2
px4-firmware-e8855423bea0938c607ed2ab8bde5ebec094b5a6.zip
EKF hotfix: Remove unused variables, use default initializer list for vectors
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator_23states.h2
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator_utilities.h4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/ekf_att_pos_estimator/estimator_23states.h b/src/modules/ekf_att_pos_estimator/estimator_23states.h
index ff311649a..faa6735ca 100644
--- a/src/modules/ekf_att_pos_estimator/estimator_23states.h
+++ b/src/modules/ekf_att_pos_estimator/estimator_23states.h
@@ -172,8 +172,6 @@ public:
unsigned covSkipCount; // Number of state prediction frames (IMU daya updates to skip before doing the covariance prediction
// GPS input data variables
- float gpsCourse;
- float gpsVelD;
double gpsLat;
double gpsLon;
float gpsHgt;
diff --git a/src/modules/ekf_att_pos_estimator/estimator_utilities.h b/src/modules/ekf_att_pos_estimator/estimator_utilities.h
index 0cafdc808..6d1f47b68 100644
--- a/src/modules/ekf_att_pos_estimator/estimator_utilities.h
+++ b/src/modules/ekf_att_pos_estimator/estimator_utilities.h
@@ -19,9 +19,7 @@ public:
float y;
float z;
- Vector3f() { zero(); }
-
- Vector3f(float a, float b, float c) :
+ Vector3f(float a=0.0f, float b=0.0f, float c=0.0f) :
x(a),
y(b),
z(c)