Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / traffic_navigation / validTurns.h @ 1886

History | View | Annotate | Download (1.1 KB)

1
#ifndef _VALID_TURNS_
2
#define _VALID_TURNS_
3

    
4

    
5
/****************************
6
 * Intersection Information: 5-bit Integer
7
 *         3 bits of intersection type
8
 *         2 bits of entry information
9
 * 
10
 ****************************/
11

    
12
/********************************
13
 *  Intersection TYPES:
14
 *
15
 *  INTERSECTION_SINGLE         (0 << 2)
16
 *  INTERSECTION_ON_RAMP         (1 << 2)
17
 *  INTERSECTION_OFF_RAMP         (2 << 2)
18
 *  INTERSECTION_DOUBLE_C        (3 << 2)
19
 *  INTERSECTION_DOUBLE_T        (4 << 2)
20
 *
21
 ********************************/
22

    
23
 /********************************
24
 *  Turn TYPES:
25
 *  
26
 *  ISTRAIGHT                0
27
 *  ILEFT                1
28
 *  IRIGHT                2
29
 *  IUTURN                3
30
 *
31
 ********************************/
32

    
33

    
34
/********************************
35
 *  Intersection ENTRYPOINTS:
36
 *  INTERSECTION_DOUBLE_C
37
 *  use T-Junction positions
38
 *  
39
 *  INTERSECTION_DOUBLE_T
40
 *  TLEFT                0                        
41
 *  TRIGHT                1                        
42
 *  TMIDDLE                2
43
 *  
44
 *  INTERSECTION_SINGLE
45
 *  SACROSS                0
46
 *  SUP                1
47
 *  
48
 *  INTERSECTION_ON_RAMP
49
 *  R_LEFT                0
50
 *  R_RIGHT                1
51
 *  R_RAMP                2
52
 *  
53
 *  INTERSECTION_OFF_RAMP
54
 *  use On_ramp positions
55
 *
56
 *****************************/
57
 
58
int validateTurn(int barcode, int turn_type);
59

    
60
#endif