Tony Stark / BLDC_V2_JYB

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
20:bf9ea5125d52
Parent:
19:bd10a04eedc2
Child:
21:7d1f0a206668
--- a/CurrentRegulator/CurrentRegulator.h	Tue Feb 14 03:28:16 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#ifndef CURRENTREGULATOR_H
-#define CURRENTREGULATOR_H
-
-#include "Inverter.h"
-#include "SVM.h"
-#include "PositionSensor.h"
-
-class CurrentRegulator{
-    public:
-        CurrentRegulator(Inverter *inverter, PositionSensor *position_sensor, PositionSensor *velocity_sensor, float L, float Kp, float Ki);
-        void UpdateRef(float D, float Q);
-        void Commutate();
-        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, 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();
-        void Update();
-        void SendSPI();
-        Inverter* _Inverter;
-        PositionSensor* _PositionSensor;
-        PositionSensor* _VelocitySensor;
-        SVM* PWM;
-        //Serial* pc;
-        int count;
-            
-    
-    
-    };
-    
-    
-#endif
\ No newline at end of file