Caddy
A 2005 Roborodentia entry with vision and path planning capability
 All Data Structures Files Functions Variables Typedefs Macros Pages
test_routines.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  */
17 #ifndef TESTCODE_H_
18 #define TESTCODE_H_
19 
20 #include <stdint.h>
21 
22 // --- CONSTANTS --- //
23 #define DEFAULT_TEST_MODE SEEK_BALL_TEST_MODE
24 
25 #define RUN_BOT_TEST_MODE 0
26 #define BB_TEST_MODE 1
27 #define GB_TEST_MODE 2
28 #define LINE_STATS_TEST_MODE 3
29 #define SEE_BALL_TEST_MODE 4
30 #define SEEK_BALL_TEST_MODE 5
31 #define NEST_TEST_MODE 6
32 #define FIXED_PATH_TEST_MODE 7
33 #define ZIG_ZAG_TEST_MODE 8
34 #define UPDATE_PATH_TEST_MODE 9
35 #define DIAG_TEST_MODE 10
36 #define NODE_31_TEST_MODE 11
37 
38 #define NUM_TEST_MODES 12
39 
40 // --- PROTOTYPES --- //
41 void runTest( void );
42 void toggleTestMode( int8_t i );
43 void runFixedPath( void );
44 void seekBallTest( void );
45 inline void refreshColorStats( void );
46 inline void clearColorStats( void );
47 inline void labelColorStats( void );
48 void updatePathTest( void );
49 
50 void printPathList( void );
51 
52 #endif // #ifndef TESTCODE_H_