We use a cypress board for our co-driver, and it recently started throwing an exception whenever we try to access a certain switch, however it had worked before. We traced back through our changes and can't seem to find the problem.
It throws
Code:
edu.wpi.first.wpilibj.util.BoundaryException: Value must be between 1.0 and 6.0, 7.0 given
when called by
Code:
DriverStation.getInstance().getEnhancedIO().getButton(7)
and we can't figure out why. Help?