-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.ino
48 lines (39 loc) · 901 Bytes
/
debug.ino
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
void serialSensors(){
Serial1.print(leftSensorValue);
Serial1.print("\t");
Serial1.print(rightSensorValue);
Serial1.print("\t");
Serial1.print(frontSensorValue);
Serial1.print("\t");
Serial1.print(leftPWM);
Serial1.print("\t");
Serial1.print(rightPWM);
Serial1.println("\t");
//Serial1.print(" leftWall: ");
//Serial1.print(leftWallValue);
//Serial1.print(" rightWall:");
//Serial1.println(rightWallValue);
}
void testDrive(){
Serial1.println("Forward");
forward();
delay(1000);
Serial1.println("Reverse");
reverse();
delay(1000);
Serial1.println("Right");
turnRight();
delay(1000);
Serial1.println("Left");
turnLeft();
delay(1000);
Serial1.println("HardRight");
turnHardRight();
delay(1000);
Serial1.println("HardLeft");
turnHardLeft();
delay(1000);
Serial1.println("STOP!");
allStop();
delay(10000);
}