diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-13 14:58:57 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-13 14:58:57 +0200 |
commit | b4b3a2a2c68a523af5141a4452e533befc873384 (patch) | |
tree | 07dad299883c61addc45f69de62852dcc2885f28 /src/modules/ekf_att_pos_estimator/estimator_utilities.h | |
parent | c610050dc305884a704b51c00cfff5f2f9984bcb (diff) | |
download | px4-firmware-b4b3a2a2c68a523af5141a4452e533befc873384.tar.gz px4-firmware-b4b3a2a2c68a523af5141a4452e533befc873384.tar.bz2 px4-firmware-b4b3a2a2c68a523af5141a4452e533befc873384.zip |
EKF hotfix: Force zero initialization of vectors
Diffstat (limited to 'src/modules/ekf_att_pos_estimator/estimator_utilities.h')
-rw-r--r-- | src/modules/ekf_att_pos_estimator/estimator_utilities.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/ekf_att_pos_estimator/estimator_utilities.h b/src/modules/ekf_att_pos_estimator/estimator_utilities.h index 5648cb05c..0cafdc808 100644 --- a/src/modules/ekf_att_pos_estimator/estimator_utilities.h +++ b/src/modules/ekf_att_pos_estimator/estimator_utilities.h @@ -19,6 +19,14 @@ public: float y; float z; + Vector3f() { zero(); } + + Vector3f(float a, float b, float c) : + x(a), + y(b), + z(c) + {} + float length(void) const; void zero(void); }; |