FAQ | This is a LIVE service | Changelog

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

Recovery for stuck while going up the ramp

parent 64d1597b
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,6 @@ void loop() {
if (IR_check_val != 0 && cur_status == IR_check_val) {
cur_loop_count += 1;
if (cur_loop_count > 800) {
Serial.println("RECOVERY CODE");
status_repeat = true;
}
else {
......@@ -76,6 +75,7 @@ void loop() {
}
if (status_repeat) {
Serial.println("RECOVERY CODE");
move_both(motors, 255);
continue;
}
......
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