Skip to content

Commit d3d220a

Browse files
committed
11.27.21 11:36
1 parent fa65580 commit d3d220a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/teleop/mecanumDriveRed.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,12 @@ public void runOpMode() {
127127

128128
//TODO
129129

130+
arm1.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
130131
//int ticks = 0;
131132
//ticks += -(int) gamepad2.left_stick_y * 2;
132-
arm1.setPower(1);
133+
telemetry.addData("Arm Position", arm1.getCurrentPosition());
134+
telemetry.update();
135+
arm1.setPower(0.6);
133136
arm1.setTargetPosition(100);
134137
arm1.setMode(DcMotor.RunMode.RUN_TO_POSITION);
135138

0 commit comments

Comments
 (0)