Estimating the Position of the Arm
Estimating the Position of the Arm using Telemetry
if(gamepad1.dpad_up){
arm.setPower(0.2);
}
else if (gamepad1.dpad_down){
arm.setPower(-0.2);
}
else {
arm.setPower(0);
} Adding Telemetry
while(opModeIsActive){
if(gamepad1.dpad_up){
arm.setPower(0.2);
}
else if (gamepad1.dpad_down){
arm.setPower(-0.2);
}
else {
arm.setPower(0);
}
telemetry.addData("Arm Test", arm.getCurrentPosition());
telemetry.update();
}Finding the Position with Telemetry

Adding RUN_TO_POSITION to the Program
Testing the Program
Last updated
Was this helpful?

