From d1070136d5739095beda9bb20b6c17fadf9b952c Mon Sep 17 00:00:00 2001 From: Alena Kazakova Date: Mon, 27 Nov 2017 19:40:54 +0900 Subject: [PATCH] Update robot.h --- src/lib/robot.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/robot.h b/src/lib/robot.h index e95f1a8..da20adc 100644 --- a/src/lib/robot.h +++ b/src/lib/robot.h @@ -32,6 +32,10 @@ extern volatile int goingBW; /* Track current speed */ extern volatile int curr_speedA; extern volatile int curr_speedB; +/* Track previous direction*/ +volatile char prev_dir; +/* Track current direction*/ +volatile char curr_dir; /* Setup */ extern void setup (void);