mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-16 04:12:34 +00:00
Debug and fail-safe
This commit is contained in:
@@ -308,7 +308,7 @@ public class PhoenixTeleOPState extends CyberarmState {
|
|||||||
|
|
||||||
if (engine.gamepad2.right_bumper) {
|
if (engine.gamepad2.right_bumper) {
|
||||||
OCD = 0;
|
OCD = 0;
|
||||||
if (robot.HighRiserLeft.getPosition() < 1.0 - Math.abs(topServoOffset)) {
|
if (robot.HighRiserLeft.getPosition() < 0.9 - Math.abs(topServoOffset)) {
|
||||||
if (System.currentTimeMillis() - lastStepTime >= 120) {
|
if (System.currentTimeMillis() - lastStepTime >= 120) {
|
||||||
lastStepTime = System.currentTimeMillis();
|
lastStepTime = System.currentTimeMillis();
|
||||||
robot.HighRiserLeft.setPosition(robot.HighRiserLeft.getPosition() + 0.05);
|
robot.HighRiserLeft.setPosition(robot.HighRiserLeft.getPosition() + 0.05);
|
||||||
|
|||||||
Reference in New Issue
Block a user