-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMasterArduino.h
More file actions
57 lines (36 loc) · 1006 Bytes
/
MasterArduino.h
File metadata and controls
57 lines (36 loc) · 1006 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
51
52
53
54
55
56
57
/* pins */
// pins for the sound sensor
int pinSS = A0;
// pins for the turret (servo)
int pinTurret = 6; // PWM pin
// pins for the fire detection system
int pinFDS1 = A1; // IR sensor
int pinFDS2 = A2; // IR sensor
int pinFDS3 = A3; // IR sensor
// pins for the fire extinguishing system
// see "ConfigurationsEFS.png" to know how to control it.
int pinFES1 = 7; // goes to INA.
int pinFES2 = 8; // goes to INB.
/* functions */
// returns the robot's rotation degree with respect to the initial angle.
int getDegrees();
// checks if there is white area under the robot.
boolean checkWhiteArea();
// move forward
void moveForward();
// move backward
void moveBackward();
// move right
void moveRight();
// move left
void moveLeft();
// stop moving
void stopMoving();
// returns the front distnance.
int getFrontDis();
// returns the back distnance.
int getBackDis();
// returns the right distnance.
int getRightDis();
// returns the left distnance.
int getLeftDis();