ESE350 project, Spring 2016, University of Pennsylvania

Dependencies:   Adafruit9-DOf Receiver mbed-rtos mbed

Revision:
48:0346cdff12a7
Parent:
46:4bcf2e679f96
--- a/quadcopter.h	Thu May 05 20:47:55 2016 +0000
+++ b/quadcopter.h	Fri May 06 01:44:29 2016 +0000
@@ -9,6 +9,7 @@
 #include "rtos.h"
 
 #define FILTER_SIZE 1
+
 #define MIN_PWM_1   0.1172
 #define MIN_PWM_2   0.1161
 #define MIN_PWM_3   0.1161
@@ -119,8 +120,12 @@
     // previous times
     float prev_controller_time_; 
     float prev_sensor_time;
+    float start_sampling_time;
+    
     double compAngleX;
     double compAngleY;
+    double comp_x_offset;
+    double comp_y_offset;
 
     double max_integral_phi_;
     double max_integral_theta_;