toggle
This commit is contained in:
parent
4598a89b99
commit
fa9d628c9c
|
|
@ -68,7 +68,7 @@ public class RobotContainer {
|
|||
m_driverController.povRight().onTrue(new SetDeflectorCommand(turretSubsystem, Constants.ShooterConstants.DEFLECTOR_SET_ANGLE3));
|
||||
m_driverController.povUp().onTrue(new SetDeflectorCommand(turretSubsystem, Constants.ShooterConstants.DEFLECTOR_SET_ANGLE2));
|
||||
|
||||
m_driverController.rightBumper().whileTrue(intakeSubsystem.intake());
|
||||
m_driverController.rightBumper().onTrue(intakeSubsystem.intake());
|
||||
m_driverController.y().onTrue(intakeSubsystem.deploy());
|
||||
m_driverController.x().whileTrue(new AutoShootCommandChassisTurret(driveSubsystem, hopperSubsystem, turretSubsystem));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class IntakeSubsystem extends TestableSubsystem {
|
|||
|
||||
public Command intake()
|
||||
{
|
||||
return this.runEnd(() -> setSpeed(-.5), () -> { intakeMotor.stopMotor();});
|
||||
return this.runOnce(() -> {if(intakeMotor.get()!=0){setSpeed(-.5);}else{intakeMotor.stopMotor();}});
|
||||
}
|
||||
|
||||
public Command reverseIntake()
|
||||
|
|
|
|||
Loading…
Reference in New Issue