working-est copy with class-based code. still open loop
Fork of analoghalls6 by
Diff: meta.h
- Revision:
- 10:b4abecccec7a
- Parent:
- 9:d3b70c15baa9
--- a/meta.h Fri Mar 06 19:12:53 2015 +0000 +++ b/meta.h Sun Mar 08 00:45:28 2015 +0000 @@ -35,7 +35,7 @@ class ReferenceSynthesizer { public: ReferenceSynthesizer(float max_phase_current) {_max_phase_current = max_phase_current;} - virtual void GetReference(float angle, float *ref_d, float *ref_q) {*ref_d = 0; *ref_q = 0;} + virtual void GetReference(float angle, float throttle, float *ref_d, float *ref_q) {*ref_d = 0; *ref_q = 0;} protected: static float LutSin(float theta); static float LutCos(float theta); @@ -46,7 +46,7 @@ class SynchronousReferenceSynthesizer : public ReferenceSynthesizer { public: SynchronousReferenceSynthesizer(float max_phase_current):ReferenceSynthesizer(max_phase_current) {} - virtual void GetReference(float angle, float *ref_d, float *ref_q); + virtual void GetReference(float angle, float throttle, float *ref_d, float *ref_q); }; class StatusUpdater {