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
SVM/SVM.h
- Committer:
- benkatz
- Date:
- 2016-02-05
- Revision:
- 0:4e1c4df6aabd
- Child:
- 5:51c6560bf624
File content as of revision 0:4e1c4df6aabd:
#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