it works!
Dependencies: mbed-dev-f303 FastPWM3
Diff: FOC/foc.h
- Revision:
- 37:c0f352d6e8e3
- Parent:
- 26:2b865c00d7e9
- Child:
- 45:26801179208e
--- a/FOC/foc.h Fri Mar 02 15:24:00 2018 +0000 +++ b/FOC/foc.h Fri Apr 13 13:50:54 2018 +0000 @@ -9,12 +9,14 @@ #include "math_ops.h" #include "motor_config.h" #include "current_controller_config.h" +#include "FastMath.h" +#include "user_config.h" 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 zero_current(int *offset_1, int *offset_2); void reset_foc(ControllerStruct *controller); -void commutate(ControllerStruct *controller, GPIOStruct *gpio, float theta); +void commutate(ControllerStruct *controller, ObserverStruct *observer, GPIOStruct *gpio, float theta); void torque_control(ControllerStruct *controller); #endif