-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.h
More file actions
50 lines (39 loc) · 817 Bytes
/
Config.h
File metadata and controls
50 lines (39 loc) · 817 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef CONFIG_H
#define CONFIG_H
// Defines our map and the information each cell has.
struct celda{
int iCerteza;
int iDecision;
bool bPosicion;
char cLetra;
};
typedef struct pos{
int x;
int y;
int z;
};
// This defines our map dimiensions.
#define maxSize 21
#define mapHeight 2
//Definitions of motors in the drivetrain
#define leftMotor 2
#define rightMotor 3
#define frontMotor 4
#define backMotor 5
#define trigPinRight 50
#define echoPinRight 51
#define trigPinLeft 48
#define echoPinLeft 49
#define trigPinFront 46
#define echoPinFront 47
#define trigPinBack 52
#define echoPinBack 53
#define heatPinBack 45
#define heatPinRight 44
#define heatPinLeft 43
#define heatPinFront 42
#define colorPinSensor 19
#define ledPin 37
#define btnPin 39
extern celda universo[13][13][3];
#endif