diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-12-23 22:34:11 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-12-23 22:34:11 +0400 |
commit | a26e46bede186c36b475e0b5a9cf3ef758cc1c9b (patch) | |
tree | c959c0d5e43352048c4d39f9a39624811e45827d /src/lib/mathlib/math/Vector.hpp | |
parent | 5a2da77758867914e3e8b55267df56a6f95913ed (diff) | |
download | px4-firmware-a26e46bede186c36b475e0b5a9cf3ef758cc1c9b.tar.gz px4-firmware-a26e46bede186c36b475e0b5a9cf3ef758cc1c9b.tar.bz2 px4-firmware-a26e46bede186c36b475e0b5a9cf3ef758cc1c9b.zip |
att_pos_estimator_ekf: fixes, mathlib: minor changes
Diffstat (limited to 'src/lib/mathlib/math/Vector.hpp')
-rw-r--r-- | src/lib/mathlib/math/Vector.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp index c865bab42..744402e21 100644 --- a/src/lib/mathlib/math/Vector.hpp +++ b/src/lib/mathlib/math/Vector.hpp @@ -259,6 +259,13 @@ public: return *this / length(); } + /** + * set zero vector + */ + void zero(void) { + memset(data, 0, sizeof(data)); + } + void print(void) { printf("[ "); for (unsigned int i = 0; i < N; i++) |