Austin Brown
/
CurrentModeSine
Slurp
Embed:
(wiki syntax)
Show/hide line numbers
foc.h
00001 #ifndef FOC_H 00002 #define FOC_H 00003 00004 #include "structs.h" 00005 #include "PositionSensor.h" 00006 #include "mbed.h" 00007 #include "math.h" 00008 #include "math_ops.h" 00009 #include "motor_config.h" 00010 #include "current_controller_config.h" 00011 00012 void abc(float theta, float d, float q, float *a, float *b, float *c); 00013 void dq0(float theta, float a, float b, float c, float *d, float *q); 00014 void svm(float v_bus, float u, float v, float w, float *dtc_u, float *dtc_v, float *dtc_w); 00015 void zero_current(int *offset_1, int *offset_2); 00016 void reset_foc(ControllerStruct *controller); 00017 void commutate(ControllerStruct *controller, GPIOStruct *gpio, float theta); 00018 void voltageabc(float theta, float d, float q, float *a, float *b, float *c); 00019 #endif
Generated on Tue Jul 12 2022 16:57:53 by 1.7.2