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-rtos mbed QEI
Diff: Actuators/Arms/Arm.h
- Revision:
- 2:45da48fab346
- Parent:
- 1:8119211eae14
- Child:
- 4:1be0f6c6ceae
--- a/Actuators/Arms/Arm.h Fri Mar 29 16:28:56 2013 +0000
+++ b/Actuators/Arms/Arm.h Fri Mar 29 20:09:21 2013 +0000
@@ -3,8 +3,9 @@
#include "mbed.h"
#include "Servo.h"
+#include "Actuators/Actuator.h"
-class Arm : public Servo
+class Arm : public Servo, public Actuator
{
private:
bool updirn;
@@ -27,7 +28,9 @@
write(updirn?0:1);
}
- void relax() { // servo applies no force
+ virtual void halt() { // servo applies no force
+ DigitalOut myled(LED3);
+ myled = 1;
_pwm = 0;
}
};