summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/top.fsm
diff options
context:
space:
mode:
authorNicolas Schodet2010-04-01 23:57:49 +0200
committerNicolas Schodet2010-04-01 23:57:49 +0200
commit00daa402978eb67ffcff2b6751425c26ce55c716 (patch)
tree23122389d51e5c4acebb03a09641b38d96e1e8e1 /digital/io/src/top.fsm
parent1259814c98dd4bf146138057b6d65569c2503855 (diff)
digital/io/src: add very basic top behaviour to test move FSM
Diffstat (limited to 'digital/io/src/top.fsm')
-rw-r--r--digital/io/src/top.fsm16
1 files changed, 14 insertions, 2 deletions
diff --git a/digital/io/src/top.fsm b/digital/io/src/top.fsm
index dde79a51..492f286d 100644
--- a/digital/io/src/top.fsm
+++ b/digital/io/src/top.fsm
@@ -7,6 +7,10 @@ States:
waiting for the beginning of the top FSM.
WAIT_INIT_TO_FINISH
waiting for the end of init.
+ GO_FAR
+ testing move fsm, going to a far point.
+ GO_NEAR
+ testing move fsm, going to a near point.
Events:
start
@@ -34,6 +38,14 @@ IDLE:
nothing to do.
WAIT_INIT_TO_FINISH:
- init_match_is_started -> .
- the match start, place something interresting here
+ init_match_is_started -> GO_FAR
+ the match start
+ go to a far point
+GO_FAR:
+ move_fsm_succeed -> GO_NEAR
+ go to a near point
+
+GO_NEAR:
+ move_fsm_succeed -> GO_FAR
+ restart