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.
Dependencies: mbed-dev-f303 FastPWM3
Diff: CurrentRegulator/CurrentRegulator.cpp
- Revision:
- 15:ef00814e38e2
- Parent:
- 14:80ce59119d93
- Child:
- 18:f1d56f4acb39
--- a/CurrentRegulator/CurrentRegulator.cpp Mon Oct 31 16:48:16 2016 +0000
+++ b/CurrentRegulator/CurrentRegulator.cpp Sat Dec 10 05:31:06 2016 +0000
@@ -100,8 +100,8 @@
//Park(I_Alpha, I_Beta, theta_elec, &I_D, &I_Q);
Park(I_Alpha, I_Beta, theta_elec, &ID_Sample, &IQ_Sample);
- I_D = .5f*ID_Sample + .5f*ID_Old;
- I_Q = .5f*IQ_Sample + .5f*IQ_Old;
+ I_D = 1.0f*ID_Sample + 0.0f*ID_Old;
+ I_Q = 1.0f*IQ_Sample + 0.0f*IQ_Old;
ID_Old = I_D;
IQ_Old = I_Q;
//count += 1;