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.
main.c | ||
---|---|---|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
#include "traffic_navigation.h" |
9 |
#include "../linefollowing/lineDrive.h" |
|
9 | 10 |
|
10 | 11 |
static int state, sign, dataLength, pingWaitTime, turnDir; |
11 | 12 |
static char sendBuffer[PACKET_LENGTH], prevBot, nextBot, id, nextDir, nextPath, intersectionNum; |
12 | 13 |
static unsigned char *packet; |
13 | 14 |
|
14 | 15 |
void enterIntersectionQueue(int sign); |
15 |
void waitInIntersectionQueue(); |
|
16 |
void waitInIntersectionQueue(void);
|
|
16 | 17 |
void driveThroughIntersection(int sign); |
17 | 18 |
|
18 | 19 |
int main (void) { |
Also available in: Unified diff