Fork and fix for mwork

Dependencies:   mbed-dev-f303 FastPWM3 millis

Revision:
48:74a40481740c
Parent:
47:e1196a851f76
Child:
59:568e7be5232f
--- a/structs.h	Wed Dec 05 04:07:46 2018 +0000
+++ b/structs.h	Sun Mar 03 02:51:51 2019 +0000
@@ -29,7 +29,6 @@
     float d_int, q_int;                                     // Current error integrals
     int adc1_offset, adc2_offset;                           // ADC offsets
     float i_d_ref, i_q_ref, i_d_ref_filt, i_q_ref_filt;     // Current references
-    float did_dt, diq_dt;                                   // Current reference derivatives
     int loop_count;                                         // Degubbing counter
     int timeout;                                            // Watchdog counter
     int mode;
@@ -40,13 +39,8 @@
     } ControllerStruct;
 
 typedef struct{
-    float h;
-    float k;
-    float phi;
-    float cos_integral;
-    float sin_integral;
-    float afc_out;
-    } AFCStruct;
-
-    
+    double temperature;                                              // Estimated temperature
+    double temperature2;
+    float resistance;
+    }   ObserverStruct;
 #endif