Skip to content

Commit

Permalink
Update robot.c
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaza authored Nov 28, 2017
1 parent 2299b94 commit 5f265eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/robot.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ float calc_dist(void)
return dist;
}

/* Motor state control with gradual deceleration */
/* Motor control */
void move(char dir, int speedA, int speedB)
{
setSpeed(speedA, speedB);
setDir(dir);
}

/* Motor control with gradual deceleration */
void move_slow(char dir, int speedA, int speedB)
{
if (dir == prev_dir) {
Expand Down

0 comments on commit 5f265eb

Please sign in to comment.