X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=build-stages%2Fg_follow%2Fg_follow.ino;fp=build-stages%2Fg_follow%2Fg_follow.ino;h=e9e62503ce4500e197f0648b2ba6e35e21906827;hp=344c46e76a67898134e4af8600c11d8930763d57;hb=3a60191c9b3d188a4b9fc0bb9f358be185dcd581;hpb=4fb38d0258fc0574273cdcf1000cf2820e3297f6 diff --git a/build-stages/g_follow/g_follow.ino b/build-stages/g_follow/g_follow.ino index 344c46e..e9e6250 100644 --- a/build-stages/g_follow/g_follow.ino +++ b/build-stages/g_follow/g_follow.ino @@ -114,9 +114,9 @@ void setup(){ off(right_motor_speed_pin); off(right_motor_forward_pin); off(right_motor_backward_pin); - off(right_trigger_pin);} + off(right_trigger_pin); } -void loop(){ +void loop() { int left_speed; int right_speed; @@ -137,6 +137,7 @@ void loop(){ Serial.print(" right: ping = "); Serial.print(actual_right_ping_time); Serial.print(" speed = "); - Serial.println(right_speed); + Serial.print(right_speed); + Serial.println(); - go(left_speed, right_speed);} + go(left_speed, right_speed); }