BaseCode for T-Motor_AK80

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
55:c4c9fec8539c
Parent:
48:74a40481740c
--- a/structs.h	Thu Aug 08 17:39:43 2019 +0000
+++ b/structs.h	Fri Oct 04 14:18:39 2019 +0000
@@ -36,11 +36,20 @@
     float p_des, v_des, kp, kd, t_ff;                       // Desired position, velocity, gians, torque
     float v_ref, fw_int;                                     // output voltage magnitude, field-weakening integral
     float cogging[128];
+    int current_sector;
+    int otw_flag;                                           // Over-temp warning
+    float i_max;
+    float inverter_tab[128];
+    int oc_flag;
     } ControllerStruct;
 
 typedef struct{
     double temperature;                                              // Estimated temperature
-    double temperature2;
+    float temp_measured;
+    float q_in, q_out;
     float resistance;
+    float k;
+    float trust;
+    float delta_t;
     }   ObserverStruct;
 #endif