Jared DiCarlo
/
george
motor controller
foc.h
- Committer:
- dicarloj
- Date:
- 2016-10-03
- Revision:
- 1:2acd7dfc4b1b
- Parent:
- 0:f899a5183b5e
- Child:
- 2:7312ac02785d
File content as of revision 1:2acd7dfc4b1b:
#ifndef _foc #define _foc #include "config.h" struct sensorData{ float v_bus, i_a, i_b; }; struct Inverter{ float v_a, v_b, v_c; }; extern Inverter *inverter; extern sensorData *sensors; float fmaxf(float a, float b); float fminf(float a, float b); void initControl(); void sampleCurrent(); void doFOC(float current_time); #endif