Skip to content

Commit

Permalink
now using acclerate and new default speeds to get smoother starts
Browse files Browse the repository at this point in the history
  • Loading branch information
dan committed Sep 11, 2012
1 parent dc73d27 commit 63e2f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions threeMotorsRobotCommPCB/threeMotorsRobotCommPCB.ino
Expand Up @@ -104,9 +104,9 @@
#define DEFAULT_TURN_FOREVER_SPEED 220
#define MOVE_TIME 100
#define TILT_TIME 500
#define MIN_ACCEL_SPEED 100
#define MIN_ACCEL_SPEED 120
#define MIN_DECEL_SPEED 60
#define DELTA_SPEED 10
#define DELTA_SPEED 60
#define ACCEL_DELAY 200
#define LEFT_MOTOR_BIAS 10
#define LEFT_MOTOR_BW_BIAS 23
Expand Down Expand Up @@ -402,11 +402,11 @@ void moveForward(int mySpeed)

void moveForwardForever(int mySpeed)
{
//mySpeed = speed_default; // speed goes from 0 to 255
//mySpeed = DEFAULT_SPEED; // speed goes from 0 to 255
SERIAL_PORT.print("moving, speed = ");
SERIAL_PORT.println(mySpeed);
if (brakesOn) coast();
// accelerate(mySpeed);
accelerate(mySpeed);
motorDriver.setSpeedAB(mySpeed + left_motor_bias_default, mySpeed);
if (mySpeed == 0 || stopIfFault()) Moving = false;
else Moving = true;
Expand Down
Expand Up @@ -29,9 +29,9 @@
#define DEFAULT_TURN_FOREVER_SPEED 220
#define MOVE_TIME 100
#define TILT_TIME 500
#define MIN_ACCEL_SPEED 100
#define MIN_ACCEL_SPEED 120
#define MIN_DECEL_SPEED 60
#define DELTA_SPEED 10
#define DELTA_SPEED 60
#define ACCEL_DELAY 200
#define LEFT_MOTOR_BIAS 10
#define LEFT_MOTOR_BW_BIAS 23
Expand Down

0 comments on commit 63e2f2c

Please sign in to comment.