Colour sensors calibrated
Dependencies: mbed-rtos mbed Servo QEI
Fork of ICRSEurobot13 by
Diff: Others/EmergencyStop/EmergencyStop.h
- Revision:
- 5:56a5fdd373c9
- Parent:
- 4:1be0f6c6ceae
- Child:
- 6:995b3679155f
- Child:
- 8:69bdf20cb525
--- a/Others/EmergencyStop/EmergencyStop.h Wed Apr 03 17:54:53 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - -// Eurobot13 EmergencyStop.h - -#include "mbed.h" -#include "Actuators/Actuator.h" - -class EmergencyStop : public InterruptIn{ - private: - public: - EmergencyStop ( PinName interuptPin - , void (*risefunction)(void) = Actuator::haltandCatchFire - , void (*fallfunction)(void) = Actuator::haltandCatchFire - ) - : InterruptIn(interuptPin) - { - if (risefunction != NULL){ - rise(risefunction); - } - - if (fallfunction != NULL){ - fall(fallfunction); - } - } -}; \ No newline at end of file