FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 2d373fe5 authored by ayush1301's avatar ayush1301
Browse files

Added print statements for debug

parent 738bd82e
No related branches found
No related tags found
No related merge requests found
......@@ -43,12 +43,15 @@ void loop() {
int IR_check_val = IR_check(IR_colours);
if (IR_check_val == 0) {
move_both(motors, 150);
Serial.println("FORWARD");
}
else if (IR_check_val == 1) {
move_one_motor(motors, 100, right);
Serial.println("TURN LEFT");
}
else if (IR_check_val == 2) {
move_one_motor(motors, 100, left);
Serial.println("TURN RIGHT");
}
else {
Serial.println("Else block fml");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment