Mini Cheetah Actuator Branch Superseded by: https://github.com/bgkatz/motorcontrol

Dependencies:   mbed-dev-f303 FastPWM3

Superseded by: https://github.com/bgkatz/motorcontrol

Revision:
55:c4c9fec8539c
Parent:
48:74a40481740c
--- a/FOC/foc.h	Thu Aug 08 17:39:43 2019 +0000
+++ b/FOC/foc.h	Fri Oct 04 14:18:39 2019 +0000
@@ -14,7 +14,7 @@
 
 void abc(float theta, float d, float q, float *a, float *b, float *c);
 void dq0(float theta, float a, float b, float c, float *d, float *q);
-void svm(float v_bus, float u, float v, float w, float *dtc_u, float *dtc_v, float *dtc_w);
+void svm(float v_bus, float u, float v, float w, int current_sector, float *dtc_u, float *dtc_v, float *dtc_w);
 void zero_current(int *offset_1, int *offset_2);
 void reset_foc(ControllerStruct *controller);
 void reset_observer(ObserverStruct *observer);
@@ -22,5 +22,7 @@
 void commutate(ControllerStruct *controller, ObserverStruct *observer, GPIOStruct *gpio, float theta);
 void torque_control(ControllerStruct *controller);
 void limit_current_ref (ControllerStruct *controller);
-void linearize_dtc(float *dtc);
+void update_observer(ControllerStruct *controller, ObserverStruct *observer);
+void field_weaken(ControllerStruct *controller);
+float linearize_dtc(ControllerStruct *controller, float dtc);
 #endif