]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/common-states.h
robofsm: add "real" six_oranges strategy (copy and modify the 12 oranges strategy)
[eurobot/public.git] / src / robofsm / common-states.h
1 #ifndef COMMON_STATES_H
2 #define COMMON_STATES_H
3
4 #define FSM_MAIN
5
6 #include "roboevent.h"
7 #include <fsm.h>
8
9 extern struct TrajectoryConstraints tcFast, tcSlow, tcVerySlow;
10
11 FSM_STATE_DECL(start_six_oranges);
12 FSM_STATE_DECL(start_12_oranges);
13 FSM_STATE_DECL(start_opp_corn);
14 FSM_STATE_DECL(start_opp_oranges);
15
16
17 FSM_STATE_DECL(climb_the_slope);
18 FSM_STATE_DECL(load_oranges);
19 FSM_STATE_DECL(sledge_down);
20 FSM_STATE_DECL(to_cntainer_and_unld);
21 FSM_STATE_DECL(rush_corns_decider);
22 FSM_STATE_DECL(approach_next_corn);
23 FSM_STATE_DECL(rush_the_corn);
24 FSM_STATE_DECL(turn_around);
25 FSM_STATE_DECL(approach_the_slope);
26
27 void start_entry();
28 void start_timer();
29 void start_go();
30 void start_exit();
31
32 #endif