]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/robofsm/strategy_opp_oranges.cc
robofsm: Implement strategy switching by side bumpers
[eurobot/public.git] / src / robofsm / strategy_opp_oranges.cc
index 52eb39bf8ffcf846889b688718cbdaa6d76e7129..5b3f87d7d5edc971c5d9c0071e269dcca6b3908d 100644 (file)
@@ -25,6 +25,9 @@ FSM_STATE(start_opp_oranges)
                case EV_EXIT:
                        start_exit();
                        break;
+               case EV_SWITCH_STRATEGY:
+                       FSM_TRANSITION(start_opp_corn);
+                       break;
                default:;
        }
 }