From f705f8a60fcdb66b5dc94b1f8828110fb6dc23fa Mon Sep 17 00:00:00 2001 From: Alena Kazakova Date: Thu, 30 Nov 2017 18:48:13 +0900 Subject: [PATCH] Update robot.c --- src/lib/robot.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/robot.c b/src/lib/robot.c index 6e4c0e5..1b9a0f6 100644 --- a/src/lib/robot.c +++ b/src/lib/robot.c @@ -6,7 +6,7 @@ #include "robot.h" /* Min speed */ -int min_speed = 60; +volatile int min_speed = 70; /* Track current flag */ volatile int turningR = 0; volatile int turningL = 0; @@ -94,12 +94,6 @@ void move_slow(char dir, int speedA, int speedB) } } -/* Set min speed */ -void set_min_speed(int speed) -{ - min_speed = speed; -} - /* Initialize ultrasonic sensor */ void ultraInit(void) {