motor controller

Dependencies:   mbed plotter

Revision:
3:08746709f023
Parent:
2:7312ac02785d
--- a/foc.h	Sun Oct 30 19:37:46 2016 +0000
+++ b/foc.h	Sun Oct 30 19:55:58 2016 +0000
@@ -1,12 +1,13 @@
 #ifndef _foc
 #define _foc
 #include "config.h"
+#include "pwm_in.h"
 
 float fmaxf(float a, float b);
 float fminf(float a, float b);
 void init_control();
-void motor_control();
-void foc(float ia, float ib);
+void motor_control(PWM_IN* p_in);
+void foc(float ia, float ib, PWM_IN* p_in);
 void zero_current();
 float get_debug(int num);