ICRS Eurobot 2013
Dependencies: mbed mbed-rtos Servo QEI
Others/EmergencyStop/EmergencyStop.h
- Committer:
- twighk
- Date:
- 2013-04-01
- Revision:
- 3:717de74f6ebd
- Parent:
- 2:45da48fab346
File content as of revision 3:717de74f6ebd:
// 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); } } };