Jared DiCarlo
/
george
motor controller
Diff: foc.h
- Revision:
- 0:f899a5183b5e
- Child:
- 1:2acd7dfc4b1b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/foc.h Mon Oct 03 04:56:06 2016 +0000 @@ -0,0 +1,21 @@ +#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; + +void initControl(); +void sampleCurrent(); +void doFOC(float current_time); +#endif \ No newline at end of file