-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
53 lines (37 loc) · 1.12 KB
/
constants.h
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
51
52
53
#pragma once
#include "driverlib/driverlib.h"
#include "util.h"
#define NUM_DIST_SENSORS 4
// Ultrasonic sensors:
// 2.5 This is the common port to trigger all the sensors.
extern const PORT TRIG_PORT;
extern const PIN TRIG_PIN;
// 8.1, 2.7, 8.0, 5.1
extern const PORT U_SENSOR1_PORT;
extern const PIN U_SENSOR1_PIN;
extern const PORT U_SENSOR2_PORT;
extern const PIN U_SENSOR2_PIN;
extern const PORT U_SENSOR3_PORT;
extern const PIN U_SENSOR3_PIN;
extern const PORT U_SENSOR4_PORT;
extern const PIN U_SENSOR4_PIN;
// MOTOR 1
// 1.5, 1.4, 1.3, 5.3
extern const PORT MOTOR1_PORT1;
extern const PIN MOTOR1_PIN1;
extern const PORT MOTOR1_PORT2;
extern const PIN MOTOR1_PIN2;
extern const PORT MOTOR1_PORT3;
extern const PIN MOTOR1_PIN3;
extern const PORT MOTOR1_PORT4;
extern const PIN MOTOR1_PIN4;
// MOTOR 2
// 5.2, 5.0, 1.6, 1.7
extern const PORT MOTOR2_PORT1;
extern const PIN MOTOR2_PIN1;
extern const PORT MOTOR2_PORT2;
extern const PIN MOTOR2_PIN2;
extern const PORT MOTOR2_PORT3;
extern const PIN MOTOR2_PIN3;
extern const PORT MOTOR2_PORT4;
extern const PIN MOTOR2_PIN4;