Caddy
A 2005 Roborodentia entry with vision and path planning capability
 All Data Structures Files Functions Variables Typedefs Macros Pages
path_planning.h
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  */
20 #ifndef UPDATEPATH_H_
21 #define UPDATEPATH_H_
22 
23 #include <stdint.h>
24 #include <stdbool.h>
25 
27 #define MAX_PATH_LIST_SIZE 70
28 
30 extern uint8_t pathList[];
32 extern uint8_t pathListIndex;
33 
34 uint8_t updatePath( void );
35 inline bool isInGoalList( uint8_t nodeNum );
36 inline void addToGoalList( uint8_t nodeNum );
37 bool removeFromGoalList( uint8_t nodeNum );
38 inline void adjustNumKnownGoals( int8_t adjustment );
39 inline bool allGoalsFound(void);
40 inline void printGoalList( void );
41 uint8_t getNextBallNodeNum( void );
42 inline int8_t getNextHeading(void);
43 
44 #endif // #ifndef UPDATEPATH_H_