Skip to content
Snippets Groups Projects
Verified Commit df82a084 authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

refact: reduce slow-down time before stop

parent 404c5f8f
No related branches found
No related tags found
No related merge requests found
......@@ -234,10 +234,10 @@ void StopMotor(int old_esc_val) {
Serial.println("[INFO] MOTOR STOP INITIATED");
if (old_esc_val > gMIN_ESC_VAL) {
Serial.println("[INFO] Slowing down motor for 5 sec...");
Serial.println("[INFO] Slowing down motor for 3 sec...");
gEsc1.write(gMIN_ESC_VAL);
gEsc2.write(gMIN_ESC_VAL);
delay(5000);
delay(3000);
}
gEsc1.write(0);
......
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