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-03-12
- Revision:
- 4:c023f7b6f462
- Child:
- 9:d7eb815cb057
File content as of revision 4:c023f7b6f462:
#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