[examples] RapidReactCommandBot: Fix array indices (#4833)

This commit is contained in:
Ryan Blue
2022-12-18 17:54:37 -05:00
committed by GitHub
parent 1aad3489c2
commit 8b74ab389d

View File

@@ -17,8 +17,8 @@ public class Intake extends SubsystemBase {
private final DoubleSolenoid m_pistons =
new DoubleSolenoid(
PneumaticsModuleType.REVPH,
IntakeConstants.kSolenoidPorts[1],
IntakeConstants.kSolenoidPorts[2]);
IntakeConstants.kSolenoidPorts[0],
IntakeConstants.kSolenoidPorts[1]);
/** Returns a command that deploys the intake, and then runs the intake motor indefinitely. */
public CommandBase intakeCommand() {