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
- Committer:
- benkatz
- Date:
- 2016-05-10
- Revision:
- 9:d7eb815cb057
- Parent:
- 4:c023f7b6f462
File content as of revision 9:d7eb815cb057:
#ifndef TORQUECONTROLLER_H #define TORQUECONTROLLER_H #include "CurrentRegulator.h" class TorqueController{ public: TorqueController(float Kt, CurrentRegulator *regulator); virtual void SetTorque(float torque); private: virtual void SetCurrent(float Id, float Iq); CurrentRegulator* _CurrentRegulator; float _Kt; }; #endif