Colour sensors calibrated
Dependencies: mbed-rtos mbed Servo QEI
Fork of ICRSEurobot13 by
Others/EmergencyStop/EmergencyStop.h
- Committer:
- twighk
- Date:
- 2013-03-29
- Revision:
- 2:45da48fab346
- Child:
- 3:717de74f6ebd
File content as of revision 2:45da48fab346:
// Eurobot13 EmergencyStop.h #include "mbed.h" #include "Actuators/Actuator.h" class EmergencyStop : public InterruptIn{ private: public: EmergencyStop ( PinName pin , void (*risefunction)(void) = Actuator::haltandCatchFire , void (*fallfunction)(void) = Actuator::haltandCatchFire ) : InterruptIn(pin) { if (risefunction != NULL){ rise(risefunction); } if (fallfunction != NULL){ fall(fallfunction); } } };