root / trunk / code / projects / linefollowing / lineDrive.h @ 1855
History | View | Annotate | Download (486 Bytes)
1 |
#ifndef _LINE_DRIVE_
|
---|---|
2 |
#define _LINE_DRIVE_
|
3 |
|
4 |
#include "lineFollow.h" |
5 |
|
6 |
#define DOUBLE 0 |
7 |
#define SINGLE 1 |
8 |
#define ON_RAMP 2 |
9 |
#define OFF_RAMP 3 |
10 |
|
11 |
#define ISTRAIGHT 0 |
12 |
#define ILEFT 1 |
13 |
#define IRIGHT 2 |
14 |
#define IUTURN 3 |
15 |
|
16 |
#define MERGELEFT 4 |
17 |
#define MERGERIGHT 5 |
18 |
|
19 |
#define NORMAL -1 |
20 |
#define FINISHED -2 |
21 |
#define LOST -3 |
22 |
#define ERROR -4 |
23 |
|
24 |
|
25 |
|
26 |
void lineDrive_init(void); |
27 |
|
28 |
|
29 |
|
30 |
int doDrive(int speed); |
31 |
|
32 |
void start(void); |
33 |
void stop(void); |
34 |
|
35 |
|
36 |
int merge(int dir); |
37 |
|
38 |
int turn(int type, int dir); |
39 |
|
40 |
#endif
|