Caddy
A 2005 Roborodentia entry with vision and path planning capability
 All Data Structures Files Functions Variables Typedefs Macros Pages
robot_control.h
Go to the documentation of this file.
1 /*
2  * This file is part of Caddy.
3  *
4  * Caddy is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Caddy is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Caddy. If not, see <http://www.gnu.org/licenses/>.
16  */
23 #ifndef BOTCNTRL_H_
24 #define BOTCNTRL_H_
25 
26 // avr-libc
27 #include <stdint.h>
28 #include <stdbool.h>
29 
30 #define BALL_DIST 0
31 #define BALL_NODE_NUM 1
32 
33 // Global variables
34 extern uint8_t botNode;
35 extern int8_t botHeading;
36 extern uint8_t numUnreachedGoals;
37 
43 inline void runRoborodentiaCourse(void);
44 
45 inline void moveToJunction(uint8_t numJunctions, bool justTurned);
46 
52 void nestSequence(void);
53 
54 void junctionCode(void);
55 
63 inline void bonusBallPickUpManeuver(int8_t bbHeading, int8_t nextHeading);
64 
65 #endif // #ifndef BOTCNTRL_H_