Craig Evans / Mbed 2 deprecated ELEC2645_FSM_Puffin

Dependencies:   mbed

Revision:
2:299c10699314
Parent:
1:b6df1b5309e7
Child:
3:818317dbe8a5
--- a/main.cpp	Thu Jan 07 12:03:32 2016 +0000
+++ b/main.cpp	Thu Jan 19 19:39:28 2017 +0000
@@ -32,9 +32,9 @@
     float time;    // time in state
     int nextState[4];  // array of next states
 };
-typedef const struct State STyp;
+//typedef const struct State STyp;
 
-STyp fsm[4] = {
+State fsm[4] = {
     {0x0C,5.0,{...,...,...,...}},  // 0 - cars stop, pedestrian walk               5 seconds
     {...,2.0,{2,2,2,2}},  // 1 - cars get ready to go, pedestrian stop    2 seconds
     {...,10.0,{...,...,...,...}}, // 2 - cars go, pedestrian stop                10 seconds