summaryrefslogtreecommitdiffhomepage
path: root/digital/io/doc
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-03-02 17:20:33 +0100
committerNélio Laranjeiro2008-03-02 17:20:33 +0100
commite1a8fad681e5020f7617f1d1b01a0a172c7939ad (patch)
treee919c2d0f0daed10e81e19269e58336cc3637167 /digital/io/doc
parenta87ddfd43ed21ce3227b41624066d2b4ea468e7e (diff)
Added the AI main FSM.
Diffstat (limited to 'digital/io/doc')
-rw-r--r--digital/io/doc/mainFsm.dot16
-rw-r--r--digital/io/doc/makefile2
2 files changed, 18 insertions, 0 deletions
diff --git a/digital/io/doc/mainFsm.dot b/digital/io/doc/mainFsm.dot
new file mode 100644
index 00000000..796947a2
--- /dev/null
+++ b/digital/io/doc/mainFsm.dot
@@ -0,0 +1,16 @@
+/* IO.avr module. Main Final State Machine */
+digraph mainFsm
+{
+ node [color=lightblue2, style=filled];
+ start -> "get samples" [label = "1"];
+ "get samples" -> "get ice" [label = "Samples took"];
+ "get ice" -> "Go to goal" [label = "Ice took"];
+ "Go to goal" -> "get samples" [label = "Samples deposed"];
+
+ "get samples" -> "Go to goal" [label = "Samples took\n and ice distributor empty\n and not enough time"];
+ "Go to goal" -> "get adv ice" [label = "Sample deposed\n and ice distributor empty"];
+ "get adv ice" -> "get samples" [label = "Ice took"];
+ "get samples" -> "get adv ice" [label = "Sample took and\n ice distributor empty\n and enough time"];
+ "get adv ice" -> "Go to goal" [label = "Ice took\nCollector full"];
+ "get samples" -> "Go to goal" [label = "Collector full"];
+}
diff --git a/digital/io/doc/makefile b/digital/io/doc/makefile
new file mode 100644
index 00000000..3afed9d0
--- /dev/null
+++ b/digital/io/doc/makefile
@@ -0,0 +1,2 @@
+fsm : mainFsm.dot
+ dot -Tpng -o mainFsm.png mainFsm.dot