Skip to content

Commit

Permalink
Update robot.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaza authored Nov 27, 2017
1 parent 83f1e3d commit 96eda7c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/robot.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@
#define LEFT 'L'

/* Min speed */
#define MINSPEED 60

exern int min_speed;
/* Track current speed */
extern volatile int curr_speedA;
extern volatile int curr_speedB;
/* Track previous direction*/
volatile char prev_dir;
extern volatile char prev_dir;

/* Setup */
extern void setup (void);
/* Motor state control */
/* Motor control */
extern void move (char dir, int speedA, int speedB);
extern void move_slow (char dir, int speedA, int speedB);
/* Calulate distance */
Expand Down

0 comments on commit 96eda7c

Please sign in to comment.