Commenting a line, is this a bug?
This commit is contained in:
@ -370,7 +370,7 @@ public class Autonomoustest extends LinearOpMode {
|
|||||||
// Determine new target position, and pass to motor controller
|
// Determine new target position, and pass to motor controller
|
||||||
newLeftTarget = leftDrive.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);
|
newLeftTarget = leftDrive.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);
|
||||||
newRightTarget = rightDrive.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);
|
newRightTarget = rightDrive.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);
|
||||||
newBackLeftTarget = backleftDrive.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);
|
newBackLeftTarget = backleftDrive.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH); /* is this a bug ~ skewing issue? */
|
||||||
newbackRightTarget = backrightDrive.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);
|
newbackRightTarget = backrightDrive.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);
|
||||||
leftDrive.setTargetPosition(newLeftTarget);
|
leftDrive.setTargetPosition(newLeftTarget);
|
||||||
rightDrive.setTargetPosition(newRightTarget);
|
rightDrive.setTargetPosition(newRightTarget);
|
||||||
|
Reference in New Issue
Block a user