summaryrefslogtreecommitdiff
path: root/Venus_Skeleton/definitions.h
blob: 1e4a110f0d85773d8183e42c674bf2e02eb3cfc1 (plain)
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
// *****************
// ** DEFINITIONS **
// *****************

// Pin configuration
#define PIN_SENS_COMPASS
#define PIN_SENS_OBSTACLE_TURRET 9
#define PIN_SENS_IR_LEFT A1
#define PIN_SENS_IR_RIGHT A0
#define PIN_SENS_SAMPLE_TURRET
#define PIN_SENS_SAMPLE_GRIPPER
#define PIN_SENS_BEACON_TURRET
#define PIN_SERVO_LEFT 12
#define PIN_SERVO_RIGHT 13
#define PIN_SERVO_TURRET 11
#define PIN_SERVO_GRIPPER 10

// Number of directions the robot can choose from: ((x-1) * (360/x)) degree. Preferably a multiple of 4, I think.
#define NUM_DIRECTIONS 12

// Number of directions the turret can measure from
#define NUM_TURRET_DIRECTIONS 13

// Number of compass checks to create average
#define NUM_COMPASS_CHECKS 12

// Threshold value for obstacle turret. No free path!
#define OBSTACLE_TOO_CLOSE 30

// Maximum time between communications to Raspberry Pi (ms)
#define MAX_COMMUNICATION_DELAY 3000