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: SVM/SVM.h
- Revision:
- 0:4e1c4df6aabd
- Child:
- 5:51c6560bf624
diff -r 000000000000 -r 4e1c4df6aabd SVM/SVM.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SVM/SVM.h Fri Feb 05 00:52:53 2016 +0000
@@ -0,0 +1,37 @@
+#ifndef SVM_H
+#define SVM_H
+#include "Inverter.h"
+
+class SVM{
+public:
+ virtual void Update_DTC(float V_Alpha, float V_Beta) = 0;
+private:
+ float _V_Bus;
+protected:
+ Inverter* _inverter;
+ };
+
+
+class SPWM: public SVM{ //Sinusoidal PWM
+public:
+ SPWM(Inverter *inverter, float V_Bus);
+ virtual void Update_DTC(float V_Alpha, float V_Beta);
+private:
+ float _V_Bus;
+protected:
+ Inverter* _inverter;
+ };
+
+
+class SVPWM: public SVM{ //SVM
+public:
+ SVPWM(Inverter *inverter, float V_Bus);
+ virtual void Update_DTC(float V_Alpha, float V_Beta);
+
+private:
+ float _V_Bus;
+protected:
+ Inverter* _inverter;
+ };
+
+#endif
\ No newline at end of file