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
TorqueController/TorqueController.h@9:d7eb815cb057, 2016-05-10 (annotated)
- Committer:
- benkatz
- Date:
- Tue May 10 01:15:57 2016 +0000
- Revision:
- 9:d7eb815cb057
- Parent:
- 4:c023f7b6f462
Fixed current scaling hack
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
benkatz | 9:d7eb815cb057 | 1 | #ifndef TORQUECONTROLLER_H |
benkatz | 9:d7eb815cb057 | 2 | #define TORQUECONTROLLER_H |
benkatz | 9:d7eb815cb057 | 3 | |
benkatz | 9:d7eb815cb057 | 4 | #include "CurrentRegulator.h" |
benkatz | 4:c023f7b6f462 | 5 | |
benkatz | 4:c023f7b6f462 | 6 | class TorqueController{ |
benkatz | 4:c023f7b6f462 | 7 | public: |
benkatz | 4:c023f7b6f462 | 8 | TorqueController(float Kt, CurrentRegulator *regulator); |
benkatz | 4:c023f7b6f462 | 9 | virtual void SetTorque(float torque); |
benkatz | 4:c023f7b6f462 | 10 | |
benkatz | 4:c023f7b6f462 | 11 | private: |
benkatz | 4:c023f7b6f462 | 12 | virtual void SetCurrent(float Id, float Iq); |
benkatz | 4:c023f7b6f462 | 13 | CurrentRegulator* _CurrentRegulator; |
benkatz | 4:c023f7b6f462 | 14 | float _Kt; |
benkatz | 4:c023f7b6f462 | 15 | }; |
benkatz | 4:c023f7b6f462 | 16 | |
benkatz | 4:c023f7b6f462 | 17 | |
benkatz | 4:c023f7b6f462 | 18 | |
benkatz | 4:c023f7b6f462 | 19 | #endif |