summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/top_cb.c
diff options
context:
space:
mode:
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);
}