Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: CurrentRegulator/CurrentRegulator.cpp
- 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;