FOC Implementation for putting multirotor motors in robots

Dependencies:   FastPWM3 mbed

Revision:
6:4ee1cdc43aa8
Parent:
5:51c6560bf624
Child:
7:dc5f27756e02
--- a/CurrentRegulator/CurrentRegulator.cpp	Sat Mar 12 18:45:22 2016 +0000
+++ b/CurrentRegulator/CurrentRegulator.cpp	Sat Mar 12 19:55:52 2016 +0000
@@ -9,7 +9,7 @@
 
 CurrentRegulator::CurrentRegulator(Inverter *inverter, PositionSensor *position_sensor, float Kp, float Ki){
     _Inverter = inverter;
-    PWM = new SPWM(inverter, 2.0);
+    PWM = new SVPWM(inverter, 2.0);
     _PositionSensor = position_sensor;
     IQ_Ref = .5;
     ID_Ref = 0;