N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: meta/meta.h
- Revision:
- 14:1cc975207995
- Parent:
- 11:dccbaa9274c5
--- a/meta/meta.h Mon Mar 09 01:40:43 2015 +0000 +++ b/meta/meta.h Mon Mar 09 02:06:06 2015 +0000 @@ -9,7 +9,7 @@ class Modulator { public: Modulator(Inverter *inverter) {_inverter = inverter;} - virtual void Update(float va, float vb) = 0; + virtual void Update(float valpha, float vbeta) = 0; protected: Inverter* _inverter; }; @@ -17,7 +17,13 @@ class SinusoidalModulator: public Modulator { public: SinusoidalModulator(Inverter *inverter):Modulator(inverter) {} - virtual void Update(float va, float vb); + virtual void Update(float valpha, float vbeta); +}; + +class SvmModulator: public Modulator { +public: + SvmModulator(Inverter *inverter):Modulator(inverter) {} + virtual void Update(float valpha, float vbeta); }; class ReferenceSynthesizer {