Ben Katz / Mbed 2 deprecated Hobbyking_Cheetah_F334

Dependencies:   CANnucleo FastPWM3 mbed

Fork of Hobbyking_Cheetah_Compact by Ben Katz

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers foc.h Source File

foc.h

00001 #ifndef FOC_H
00002 #define FOC_H
00003 
00004 #include "structs.h"
00005 #include "PositionSensor.h"
00006 
00007 
00008 void abc(float theta, float d, float q, float *a, float *b, float *c);
00009 void dq0(float theta, float a, float b, float c, float *d, float *q);
00010 void svm(float v_bus, float u, float v, float w, float *dtc_u, float *dtc_v, float *dtc_w);
00011 void zero_current(int *offset_1, int *offset_2);
00012 void reset_foc(ControllerStruct *controller);
00013 void commutate(ControllerStruct *controller, GPIOStruct *gpio, float theta);
00014 #endif