mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
clean
This commit is contained in:
@@ -155,8 +155,8 @@ public class RobotContainer {
|
||||
public static boolean softLimits = true;
|
||||
|
||||
// control mode switching
|
||||
public static enum ControlMode { SHOOTER, CLIMBER };
|
||||
public static ControlMode currentControlMode = ControlMode.SHOOTER;
|
||||
private enum ControlMode { SHOOTER, CLIMBER };
|
||||
private ControlMode currentControlMode = ControlMode.SHOOTER;
|
||||
|
||||
// turret mode switching
|
||||
private enum TurretMode { MANUAL, AUTONOMOUS };
|
||||
|
||||
@@ -45,12 +45,12 @@ public class RunTurretOrClimberAuto extends CommandBase {
|
||||
@Override
|
||||
public void execute() {
|
||||
// check control mode here. if shooter control mode, run turret auto command. if climber control mode, run climber auto command.
|
||||
if (RobotContainer.currentControlMode.equals(RobotContainer.ControlMode.SHOOTER)) {
|
||||
new AimToCenter(this.turret, this.swerveDrive, this.visionOdometry);
|
||||
}
|
||||
if (RobotContainer.currentControlMode.equals(RobotContainer.ControlMode.CLIMBER)) {
|
||||
new RunClimberPath(this.climber, this.claws, new Point[] {new Point()});
|
||||
}
|
||||
// if (RobotContainer.currentControlMode.equals(RobotContainer.ControlMode.SHOOTER)) {
|
||||
// new AimToCenter(this.turret, this.swerveDrive, this.visionOdometry);
|
||||
// }
|
||||
// if (RobotContainer.currentControlMode.equals(RobotContainer.ControlMode.CLIMBER)) {
|
||||
// new RunClimberPath(this.climber, this.claws, new Point[] {new Point()});
|
||||
// }
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
||||
Reference in New Issue
Block a user