Updated ftclib.

Minor cleanup.
This commit is contained in:
Titan Robotics Club
2024-08-22 01:54:29 -07:00
parent 61d381e329
commit 948627f0e7
3 changed files with 10 additions and 14 deletions

View File

@ -260,8 +260,6 @@ public class FtcTeleOp extends FtcOpMode
break; break;
case B: case B:
break;
case X: case X:
break; break;
@ -322,6 +320,15 @@ public class FtcTeleOp extends FtcOpMode
case DpadRight: case DpadRight:
break; break;
case Back:
if (pressed && robot.robotDrive != null && robot.robotDrive instanceof FtcSwerveDrive)
{
// Drive base is a Swerve Drive, align all steering wheels forward.
robot.globalTracer.traceInfo(moduleName, ">>>>> Set SteerAngle to zero.");
((FtcSwerveDrive) robot.robotDrive).setSteerAngle(0.0, false, false);
}
break;
case Start: case Start:
if (robot.vision != null && robot.vision.aprilTagVision != null && robot.robotDrive != null) if (robot.vision != null && robot.vision.aprilTagVision != null && robot.robotDrive != null)
{ {
@ -345,15 +352,6 @@ public class FtcTeleOp extends FtcOpMode
} }
} }
break; break;
case Back:
if (pressed && robot.robotDrive != null && robot.robotDrive instanceof FtcSwerveDrive)
{
// Drive base is a Swerve Drive, align all steering wheels forward.
robot.globalTracer.traceInfo(moduleName, ">>>>> Set SteerAngle to zero.");
((FtcSwerveDrive) robot.robotDrive).setSteerAngle(0.0, false, false);
}
break;
} }
} //driverButtonEvent } //driverButtonEvent

View File

@ -756,8 +756,6 @@ public class FtcTest extends FtcTeleOp
break; break;
case Back: case Back:
break;
case Start: case Start:
break; break;
} }