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: include/motor.hpp
- Revision:
- 49:3aaa790800ad
- Parent:
- 44:3566c5699ba6
- Child:
- 53:978b7fa74080
--- a/include/motor.hpp Sun Dec 01 22:19:48 2013 +0000 +++ b/include/motor.hpp Sun Dec 01 23:43:58 2013 +0000 @@ -14,12 +14,14 @@ void setTorque(float t); void Control(); int getPos(); + float getAngle(); float getCurrent(); static float filterLowPass(float old, float currentIn, float alphar); void setPos(float pos); void setVel(float vel); void setPosVel(float pos, float vel); void zero(); + void calibAngle(float ang); float kp; float kd;