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
Diff: TorqueController/TorqueController.h
- Revision:
- 4:c023f7b6f462
- Child:
- 9:d7eb815cb057
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TorqueController/TorqueController.h Sat Mar 12 08:04:51 2016 +0000 @@ -0,0 +1,17 @@ +#ifndef CURRENTRETULATOR_H +#define 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 \ No newline at end of file