![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Inductance Testing Code
Fork of CurrentModeSine by
Diff: FOC/foc.h
- Revision:
- 1:64b881306f6f
- Parent:
- 0:9edd6ec0f56a
--- a/FOC/foc.h Sat May 20 21:42:20 2017 +0000 +++ b/FOC/foc.h Thu Oct 11 04:13:45 2018 +0000 @@ -2,18 +2,16 @@ #define FOC_H #include "structs.h" -#include "PositionSensor.h" #include "mbed.h" #include "math.h" #include "math_ops.h" -#include "motor_config.h" -#include "current_controller_config.h" +#include "inv_config.h" +#include "fw_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 voltageabc(float theta, float d, float q, float *a, float *b, float *c); +void reset_foc(FocStruct *controller); +void commutate(FocStruct *controller); +void voltage_mode_commutate(FocStruct *controller); + #endif \ No newline at end of file