Library containing Crazyflie 2.0 controller classes: - Attitude estimator - Horizontal estimator - Vertical estimator - Attitude controller - Horizontal controller - Vertical controller - Mixer

Revision:
15:155ca63b7884
Parent:
13:1a871ebd35bb
Child:
17:f682b4a5686d
--- a/VerticalEstimator/VerticalEstimator.cpp	Wed Oct 03 19:39:48 2018 +0000
+++ b/VerticalEstimator/VerticalEstimator.cpp	Wed Oct 03 22:12:38 2018 +0000
@@ -4,6 +4,9 @@
 // Class constructor
 VerticalEstimator::VerticalEstimator() : range(PB_7,PB_6)
 {
+    z = 0.0f;
+    w = 0.0f;
+    z_m_last = 0.0f;
 }
 
 // Initialize class