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 mbed-rtos MotionSensor EthernetInterface
Diff: Motor/Motor.h
- Revision:
- 20:7138ab2f93f7
- Parent:
- 12:273752f540be
- Child:
- 22:b7cca3089dfe
diff -r c709c5a9fb08 -r 7138ab2f93f7 Motor/Motor.h
--- a/Motor/Motor.h Sun May 15 19:14:06 2016 +0000
+++ b/Motor/Motor.h Sat Jul 16 19:17:08 2016 +0000
@@ -18,9 +18,10 @@
void startJogging(float jog_dc, float jog_p);
void stopJogging(void);
- void brakeMotor(void);
+ void brakeMotor(float brake_intensity, float brake_wait);
void reverseMotor(int speed);
void setVelocity(int new_velocity);
+ float getVelocity();
void setSmoothVelocity(int new_velocity);
Motor(): motor(PTD1){}