mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-15 21:22:33 +00:00
Trying to clean up and finish adding Rack Risers.
This commit is contained in:
@@ -90,8 +90,6 @@ public class PrototypeTeleOPState extends CyberarmState {
|
|||||||
robot.frontRightDrive.setPower(-frontRightPower);
|
robot.frontRightDrive.setPower(-frontRightPower);
|
||||||
robot.backRightDrive.setPower(backRightPower);
|
robot.backRightDrive.setPower(backRightPower);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
robot.armMotor.setPower(engine.gamepad2.left_stick_y * 0.5);
|
robot.armMotor.setPower(engine.gamepad2.left_stick_y * 0.5);
|
||||||
|
|
||||||
|
|
||||||
@@ -181,5 +179,19 @@ public class PrototypeTeleOPState extends CyberarmState {
|
|||||||
// .5's are originally .13's.
|
// .5's are originally .13's.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (engine.gamepad2.right_stick_y > 0.1) {
|
||||||
|
|
||||||
|
robot.RackRiserRight.setPosition(+ 1);
|
||||||
|
robot.RackRiserLeft.setPosition(+ 1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (engine.gamepad2.right_stick_y < -0.1) {
|
||||||
|
|
||||||
|
robot.RackRiserLeft.setPosition(- 1);
|
||||||
|
robot.RackRiserRight.setPosition(- 1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user