Revision 1966
Added test map data encoding to intersectData.c. Fixe a whole bunch of stuff so
that at least this traffic_navigation compiles without warnings. Symlinked to
needed files in linefollow. Changed function declaration style. Added
delclaration of read_line to analog.h. You're welcome. Fixed several #includes.
You're all welcome.
collision_avoid.c | ||
---|---|---|
6 | 6 |
* (because some bot at another intersection entrance may be able to go before another bot at another |
7 | 7 |
* intersection entrance, but their order in the queue may not allow this.). |
8 | 8 |
*/ |
9 |
|
|
9 | 10 |
#include "collision_avoid.h" |
10 | 11 |
#include "traffic_navigation.h" |
12 |
#include "../linefollowing/lineDrive.h" |
|
13 |
|
|
11 | 14 |
static unsigned int my_path = 0; |
12 | 15 |
static unsigned int first_hop = 0; |
13 | 16 |
static char intersection = 0; |
... | ... | |
108 | 111 |
* |
109 | 112 |
* All this function does is clear some variables. I guess |
110 | 113 |
* this is optional but it is nice for debugging. */ |
111 |
void ca_ExitIntersection(){ |
|
114 |
void ca_ExitIntersection(void){
|
|
112 | 115 |
my_path = 0; |
113 | 116 |
first_hop = -1; |
114 | 117 |
intersection = -1; |
Also available in: Unified diff