This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
Diff: Actuators/Actuator.h
- Revision:
- 4:1be0f6c6ceae
- Parent:
- 2:45da48fab346
--- a/Actuators/Actuator.h Mon Apr 01 15:33:48 2013 +0000 +++ b/Actuators/Actuator.h Wed Apr 03 17:54:53 2013 +0000 @@ -6,7 +6,7 @@ class Actuator { private: - static Actuator *Head; + static Actuator *Head; // Actuator.cpp Actuator *next; public: @@ -24,15 +24,14 @@ virtual void halt (void) = 0; static void haltandCatchFire(void){ - //halt - for(Actuator* nxt = Head; nxt != NULL; nxt = nxt->next){ - nxt->halt(); - } - DigitalOut myled(LED1); - myled = 1; - - //catchFire - while(true); + DigitalOut myled(LED1); + myled = 1; + //halt + for(Actuator* nxt = Head; nxt != NULL; nxt = nxt->next){ + nxt->halt(); + } + //catchFire + while(true); }