Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RBinsonB authored Jun 5, 2020
1 parent 4877661 commit d7c528e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Arduino/motor_controller_v2_AFMS/motor_controller_v2_AFMS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ unsigned long lastMilli = 0;
//--- Robot-specific constants ---
const double radius = 0.04; //Wheel radius, in m
const double wheelbase = 0.187; //Wheelbase, in m
const double encoder_cpr = 990 //Encoder ticks or counts per rotation
const double speed_to_pwm_ratio = 0.00235 //Ratio to convert speed (in m/s) to PWM value. It was obtained by plotting the wheel speed in relation to the PWM motor command (the value is the slope of the linear function).
const double min_speed_cmd = 0.0882 //(min_speed_cmd/speed_to_pwm_ratio) is the minimum command value needed for the motor to start moving. This value was obtained by plotting the wheel speed in relation to the PWM motor command (the value is the constant of the linear function).
const double encoder_cpr = 990; //Encoder ticks or counts per rotation
const double speed_to_pwm_ratio = 0.00235; //Ratio to convert speed (in m/s) to PWM value. It was obtained by plotting the wheel speed in relation to the PWM motor command (the value is the slope of the linear function).
const double min_speed_cmd = 0.0882; //(min_speed_cmd/speed_to_pwm_ratio) is the minimum command value needed for the motor to start moving. This value was obtained by plotting the wheel speed in relation to the PWM motor command (the value is the constant of the linear function).

double speed_req = 0; //Desired linear speed for the robot, in m/s
double angular_speed_req = 0; //Desired angular speed for the robot, in rad/s
Expand Down

0 comments on commit d7c528e

Please sign in to comment.