-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Board: Arduino RobotApplies only to the Arduino RobotApplies only to the Arduino RobotComponent: CoreRelated to the code for the standard Arduino APIRelated to the code for the standard Arduino API
Description
Version 1.0.5 of the IDE. RobotControl::motorsWritePct() has an arithmetic error when computing the left/right motor speed.
Both the left/right values need to be divided by 100.
Old code:
int16_t speedLeft=255*speedLeftPct;
int16_t speedRight=255*speedRightPct;
I believe it should read:
int16_t speedLeft=255*speedLeftPct / 100;
int16_t speedRight=255*speedRightPct / 100;
Metadata
Metadata
Assignees
Labels
Board: Arduino RobotApplies only to the Arduino RobotApplies only to the Arduino RobotComponent: CoreRelated to the code for the standard Arduino APIRelated to the code for the standard Arduino API