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.
Diff: DQMapper/DQMapper.h
- Revision:
- 160:6948bb7bcabd
- Parent:
- 124:e70ca81676fc
- Child:
- 171:3f1d1792757c
diff -r 9dbc0657238c -r 6948bb7bcabd DQMapper/DQMapper.h
--- 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