Ben Katz
/
Hobbyking_Cheetah_V1
FOC Implementation for putting multirotor motors in robots
Diff: CurrentRegulator/CurrentRegulator.h
- Revision:
- 14:80ce59119d93
- Parent:
- 12:c473a25f54f7
--- a/CurrentRegulator/CurrentRegulator.h Sun May 22 03:47:40 2016 +0000 +++ b/CurrentRegulator/CurrentRegulator.h Mon Oct 31 16:48:16 2016 +0000 @@ -13,7 +13,7 @@ void Reset(); virtual float GetQ(); private: - float IQ_Ref, ID_Ref, V_Q, V_D, V_Alpha, V_Beta, V_A, V_B, V_C, I_Q, I_D, I_A, I_B, I_C, I_Alpha, I_Beta, theta_elec, _Kp, _Ki, _L; + float IQ_Ref, ID_Ref, V_Q, V_D, V_Alpha, V_Beta, V_A, V_B, V_C, I_Q, I_D, IQ_Old,ID_Old,I_A, I_B, I_C, I_Alpha, I_Beta, theta_elec, _Kp, _Ki, _L; float Q_Integral, D_Integral, Q_Error, D_Error, Int_Max, DTC_Max, Q_Max; void SampleCurrent(); void SetVoltage();