summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--digital/io/src/top_cb.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/digital/io/src/top_cb.c b/digital/io/src/top_cb.c
index 076fcca7..33f5c467 100644
--- a/digital/io/src/top_cb.c
+++ b/digital/io/src/top_cb.c
@@ -40,8 +40,6 @@
#include "getsamples.h" /* getsamples_* */
#include "gutter.h" /* gutter_start */
-#include "main.h"
-
#include "io.h"
/**
@@ -135,10 +133,6 @@ top__GO_TO_ADVERSE_ICE_DISTRIBUTOR__move_fsm_finished (void)
* samples. The problem is this should depend on the time we have until
* the end of match */
uint8_t bitfield = _BV (out_right_box) | _BV (middle_right_box);
- if (main_always_stop_for_obstacle)
- {
- bitfield = _BV (middle_right_box);
- }
getsamples_start (PG_DISTRIBUTOR_ICE_ADVERSE_A, bitfield);
return top_next (GO_TO_ADVERSE_ICE_DISTRIBUTOR, move_fsm_finished);
}
@@ -164,10 +158,6 @@ top__GO_TO_OUR_ICE_DISTRIBUTOR__move_fsm_finished (void)
bitfield = _BV (out_left_box) | _BV (middle_box) | _BV
(out_right_box);
}
- if (main_always_stop_for_obstacle)
- {
- bitfield = _BV (middle_right_box);
- }
getsamples_start (PG_DISTRIBUTOR_ICE_OUR_A, bitfield);
return top_next (GO_TO_OUR_ICE_DISTRIBUTOR, move_fsm_finished);
}
@@ -194,10 +184,6 @@ top__GO_TO_SAMPLE_DISTRIBUTOR__move_fsm_finished (void)
*/
bitfield = _BV (middle_left_box) | _BV (middle_right_box);
}
- if (main_always_stop_for_obstacle)
- {
- bitfield = _BV (out_left_box);
- }
getsamples_start (PG_DISTRIBUTOR_SAMPLE_OUR_A, bitfield);
return top_next (GO_TO_SAMPLE_DISTRIBUTOR, move_fsm_finished);
}