-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIR.cpp
More file actions
33 lines (31 loc) · 863 Bytes
/
Copy pathIR.cpp
File metadata and controls
33 lines (31 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "IR.h"
int typeIdentifiant(unsigned long _id)
{
switch (_id)
{
case ID_PANNEAU_DEBUT_30:
return TYPE_ID_INFRA;
case ID_PANNEAU_FIN_30:
return TYPE_ID_INFRA;
case ID_PANNEAU_VITESSE_50:
return TYPE_ID_INFRA;
case ID_PANNEAU_FIN_VITESSE_50:
return TYPE_ID_INFRA;
case ID_PANNEAU_VIRAGE_GAUCHE:
return TYPE_ID_INFRA;
case ID_PANNEAU_CHICANE:
return TYPE_ID_INFRA;
case ID_PANNEAU_FEU:
return TYPE_ID_INFRA;
case ID_PANNEAU_VITESSE_90:
return TYPE_ID_INFRA;
case ID_STOP:
return TYPE_ID_INFRA;
case ID_DANGER:
return TYPE_ID_INFRA;
case ID_FEU:
return TYPE_ID_INFRA;
default:
return TYPE_ID_VEHICULE;
}
}