summaryrefslogtreecommitdiff
path: root/digital/io/src/top_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-20 16:04:44 +0200
committerJérémy Dufour2008-04-20 16:04:44 +0200
commit74e1ec414baeb80a37be3bc922a958aad60bb8e9 (patch)
tree29f8a2ef415bd8c59edceeecad5eb927ad9381ef /digital/io/src/top_cb.c
parenta40c4ce480ae17fe63459865821eb713333e4536 (diff)
* digital/io/src
- use parameters to call the get samples FSM start function rather than a structure.
Diffstat (limited to 'digital/io/src/top_cb.c')
-rw-r--r--digital/io/src/top_cb.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/digital/io/src/top_cb.c b/digital/io/src/top_cb.c
index c1624569..7935beed 100644
--- a/digital/io/src/top_cb.c
+++ b/digital/io/src/top_cb.c
@@ -102,11 +102,8 @@ fsm_branch_t
top__GO_TO_ADVERSE_ICE_DISTRIBUTOR__move_fsm_finished (void)
{
/* Start the get samples FSM with the correct angle */
- struct getsamples_data_t data;
/* TODO: where to put the ice?! */
- data.sample_bitfield = 0;
- data.approach_angle = PG_DISTRIBUTOR_ICE_ADVERSE_A;
- getsamples_start (data);
+ getsamples_start (PG_DISTRIBUTOR_ICE_ADVERSE_A, 0);
return top_next (GO_TO_ADVERSE_ICE_DISTRIBUTOR, move_fsm_finished);
}
@@ -119,11 +116,8 @@ fsm_branch_t
top__GO_TO_OUR_ICE_DISTRIBUTOR__move_fsm_finished (void)
{
/* Start the get samples FSM with the correct angle */
- struct getsamples_data_t data;
/* TODO: where to put the ice?! */
- data.sample_bitfield = 0;
- data.approach_angle = PG_DISTRIBUTOR_ICE_OUR_A;
- getsamples_start (data);
+ getsamples_start (PG_DISTRIBUTOR_ICE_OUR_A, 0);
return top_next (GO_TO_OUR_ICE_DISTRIBUTOR, move_fsm_finished);
}
@@ -136,11 +130,8 @@ fsm_branch_t
top__GO_TO_SAMPLE_DISTRIBUTOR__move_fsm_finished (void)
{
/* Start the get samples FSM with the correct angle */
- struct getsamples_data_t data;
/* TODO: where to put the samples?! */
- data.sample_bitfield = 0;
- data.approach_angle = PG_DISTRIBUTOR_SAMPLE_OUR_A;
- getsamples_start (data);
+ getsamples_start (PG_DISTRIBUTOR_SAMPLE_OUR_A, 0);
return top_next (GO_TO_SAMPLE_DISTRIBUTOR, move_fsm_finished);
}