FAQ | This is a LIVE service | Changelog

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

Running backwards or not lmao

parent 7a67dcb2
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
//General
uint8_t regions[2] = {BACKWARD, FORWARD};
uint8_t regions_opposite[2] = {FORWARD, BACKWARD};
int region = 1;
int region = 0;
#define floating_avg_num 3
int button_val = 0;
int button_port = 0;
......@@ -76,18 +76,20 @@ void loop() {
Serial.println("Ramp on");
}
else {
move_both(motors, 150);
move_both(motors, 255);
Serial.println("Else block fml");
/*
for(int j = 0; j < 2; j++) {
motors[j]->setSpeed(0);
}
*/
/*
for(int j = 0; j < num_IR; j++) {
Serial.print(IR_avgs[j]);
Serial.print(" -> ");
}
Serial.println();
*/
//Serial.println();
//while (1);
}
button_val = digitalRead(button_port);
......
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