summaryrefslogtreecommitdiff
path: root/digital/io/src/getsamples.fsm
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-04-12 02:03:38 +0200
committerNélio Laranjeiro2008-04-12 02:03:38 +0200
commit3c7512d1619b2e73424790f157aec3926e39e838 (patch)
treece237207867f09cc64e262db198a7d307358bd7e /digital/io/src/getsamples.fsm
parent1dd17a56e081e19dd1f8de9ea2035a6f4d83d1db (diff)
Update the fsms.
Diffstat (limited to 'digital/io/src/getsamples.fsm')
-rw-r--r--digital/io/src/getsamples.fsm12
1 files changed, 3 insertions, 9 deletions
diff --git a/digital/io/src/getsamples.fsm b/digital/io/src/getsamples.fsm
index 3f7266d0..daf1b738 100644
--- a/digital/io/src/getsamples.fsm
+++ b/digital/io/src/getsamples.fsm
@@ -7,16 +7,15 @@ States:
PREPARE_ARM
FORWARD_CONTROL
TAKE_SAMPLES
- BACKWARD
END
Events:
ok
- position_reached
position_failed
arm_moved
sample_took
classifier_ready
+ position_reached
START:
ok -> GO_TO_POSITION
@@ -25,8 +24,6 @@ START:
GO_TO_POSITION:
position_reached -> PREPARE_ARM
Go to the position desired, it is very near the position of the distributor in case it is a ice distributor or sample distributor.
- position_failed -> GO_TO_POSITION
- Go to another point before trying to go to this one again.
PREPARE_ARM:
arm_moved -> FORWARD_CONTROL
@@ -39,9 +36,6 @@ FORWARD_CONTROL:
TAKE_SAMPLES:
sample_took: more -> .
Continue to take samples and classify the next sample.
- sample_took: no_more -> BACKWARD
- If the quantity of samples are tooked, then go backeward and conitnue classifying the samples.
+ sample_took: no_more -> END
+ If the quantity of samples are taken, then go backward and continue classifying the samples.
-BACKWARD:
- position_reached -> END
- Ending this state machine.