From e1a8fad681e5020f7617f1d1b01a0a172c7939ad Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Sun, 2 Mar 2008 17:20:33 +0100 Subject: Added the AI main FSM. --- digital/io/doc/mainFsm.dot | 16 ++++++++++++++++ digital/io/doc/makefile | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 digital/io/doc/mainFsm.dot create mode 100644 digital/io/doc/makefile (limited to 'digital/io/doc') 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 -- cgit v1.2.3