Revision 1884
Separated the intersection constants from the turning constants, updated fuctions accordingly.
validTurns.h | ||
---|---|---|
4 | 4 |
|
5 | 5 |
#include "lineDrive.h" |
6 | 6 |
|
7 |
//To differenciate between T and Cross Intersections |
|
8 |
#define DOUBLE_C 4 |
|
9 |
#define DOUBLE_T 5 |
|
7 |
/**************************** |
|
8 |
* Intersection Information: 5-bit Integer |
|
9 |
* 3 bits of intersection type |
|
10 |
* 2 bits of entry information |
|
11 |
* |
|
12 |
****************************/ |
|
10 | 13 |
|
14 |
/******************************** |
|
15 |
* Intersection TYPES: |
|
16 |
* |
|
17 |
********************************/ |
|
18 |
|
|
19 |
|
|
20 |
#define INTERSECTION_SINGLE (1 << 2) |
|
21 |
#define INTERSECTION_ON_RAMP (2 << 2) |
|
22 |
#define INTERSECTION_OFF_RAMP (3 << 2) |
|
23 |
#define INTERSECTION_DOUBLE_C (4 << 2) |
|
24 |
#define INTERSECTION_DOUBLE_T (5 << 2) |
|
25 |
|
|
26 |
|
|
27 |
/******************************** |
|
28 |
* Intersection ENTRYPOINTS: |
|
29 |
* |
|
30 |
********************************/ |
|
31 |
|
|
11 | 32 |
//DOUBLE intersection (Cross Intersection) positions |
12 | 33 |
//use T-Junction positions |
13 | 34 |
|
Also available in: Unified diff