Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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