Inductance Testing Code

Dependencies:   mbed

Fork of CurrentModeSine by Austin Brown

Committer:
austinbrown124
Date:
Sat May 20 21:42:20 2017 +0000
Revision:
0:9edd6ec0f56a
Child:
1:64b881306f6f
First Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
austinbrown124 0:9edd6ec0f56a 1 #ifndef FOC_H
austinbrown124 0:9edd6ec0f56a 2 #define FOC_H
austinbrown124 0:9edd6ec0f56a 3
austinbrown124 0:9edd6ec0f56a 4 #include "structs.h"
austinbrown124 0:9edd6ec0f56a 5 #include "PositionSensor.h"
austinbrown124 0:9edd6ec0f56a 6 #include "mbed.h"
austinbrown124 0:9edd6ec0f56a 7 #include "math.h"
austinbrown124 0:9edd6ec0f56a 8 #include "math_ops.h"
austinbrown124 0:9edd6ec0f56a 9 #include "motor_config.h"
austinbrown124 0:9edd6ec0f56a 10 #include "current_controller_config.h"
austinbrown124 0:9edd6ec0f56a 11
austinbrown124 0:9edd6ec0f56a 12 void abc(float theta, float d, float q, float *a, float *b, float *c);
austinbrown124 0:9edd6ec0f56a 13 void dq0(float theta, float a, float b, float c, float *d, float *q);
austinbrown124 0:9edd6ec0f56a 14 void svm(float v_bus, float u, float v, float w, float *dtc_u, float *dtc_v, float *dtc_w);
austinbrown124 0:9edd6ec0f56a 15 void zero_current(int *offset_1, int *offset_2);
austinbrown124 0:9edd6ec0f56a 16 void reset_foc(ControllerStruct *controller);
austinbrown124 0:9edd6ec0f56a 17 void commutate(ControllerStruct *controller, GPIOStruct *gpio, float theta);
austinbrown124 0:9edd6ec0f56a 18 void voltageabc(float theta, float d, float q, float *a, float *b, float *c);
austinbrown124 0:9edd6ec0f56a 19 #endif