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;
case B:
break;
case X:
break;
@ -322,6 +320,15 @@ public class FtcTeleOp extends FtcOpMode
case DpadRight:
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:
if (robot.vision != null && robot.vision.aprilTagVision != null && robot.robotDrive != null)
{
@ -345,15 +352,6 @@ public class FtcTeleOp extends FtcOpMode
}
}
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

View File

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