Ikhee Jo / T-Motor_AK80_BaseCode

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
13:a3fa0a31b114
Parent:
12:c473a25f54f7
Child:
14:80ce59119d93
--- 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;