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:
- 13:a3fa0a31b114
- Parent:
- 12:c473a25f54f7
- Child:
- 14:80ce59119d93
diff -r c473a25f54f7 -r a3fa0a31b114 CurrentRegulator/CurrentRegulator.cpp
--- a/CurrentRegulator/CurrentRegulator.cpp Sun May 22 03:38:19 2016 +0000
+++ b/CurrentRegulator/CurrentRegulator.cpp Sun May 22 03:47:40 2016 +0000
@@ -110,7 +110,7 @@
void CurrentRegulator::Update(){
float Q_Error = IQ_Ref - I_Q;
float D_Error = ID_Ref - I_D;
- float w_elec = _velocitySensor.GetElecVelocity();
+ float w_elec = _VelocitySensor->GetElecVelocity();
Q_Integral += Q_Error*_Ki*_Kp;
D_Integral += D_Error*_Ki*_Kp;