robot

Dependencies:   FastPWM3 mbed

Revision:
160:6948bb7bcabd
Parent:
124:e70ca81676fc
Child:
171:3f1d1792757c
--- a/DQMapper/DQMapper.h	Sun May 07 17:43:41 2017 +0000
+++ b/DQMapper/DQMapper.h	Sat Jul 01 21:16:33 2017 +0000
@@ -55,4 +55,14 @@
     float _id, _iq;
 };
 
+class AutoMapper : public DQMapper {
+public:
+    AutoMapper(float phase_low, float phase_high, float steps, float is) 
+        {_phase_low = phase_low; _phase_high = phase_high; _steps = steps; _is = is; _theta = _phase_low;}
+    virtual void map(float torque_percent, float w, float *d, float *q);
+private:
+    float _phase_low, _phase_high, _steps,  _is;
+    float _theta;
+};
+
 #endif
\ No newline at end of file