![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
Diff: Actuators/Arms/Arm.h
- Revision:
- 2:45da48fab346
- Parent:
- 1:8119211eae14
- Child:
- 4:1be0f6c6ceae
diff -r 8119211eae14 -r 45da48fab346 Actuators/Arms/Arm.h --- 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; } };