Hello, our code is having problem with our shootout and roller mechanism. We did look up the problem and from what I have learned is that it is related to duplicate of the code. However, I thoroughly looked at it and there is actually no duplicate I could find. We’re using PWMSparkmax speed controller.
Output:
NT: server: client CONNECTED: 10.65.93.172 port 56901
Error at frc.robot.subsystems.ShootOut.<init>(ShootOut.java:16): Unhandled exception: edu.wpi.first.hal.util.UncleanStatusException: Code: -1029. HAL: Resource already allocated
at edu.wpi.first.hal.PWMJNI.initializePWMPort(Native Method)
at edu.wpi.first.wpilibj.PWM.<init>(PWM.java:62)
at edu.wpi.first.wpilibj.PWMSpeedController.<init>(PWMSpeedController.java:25)
at edu.wpi.first.wpilibj.PWMSparkMax.<init>(PWMSparkMax.java:37)
at frc.robot.subsystems.ShootOut.<init>(ShootOut.java:16)
at frc.robot.commands.ShootOut.ShootOutInverseRolling.<init>(ShootOutInverseRolling.java:14)
at frc.robot.RobotContainer.<init>(RobotContainer.java:71)
at frc.robot.Robot.robotInit(Robot.java:21)
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:64)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:276)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:348)
at frc.robot.Main.main(Main.java:10)
Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:291): Robots should not quit, but yours did!
Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:293): The startCompetition() method (or methods called by it) should have handled the exception above.
Unhandled exception: edu.wpi.first.hal.util.UncleanStatusException: Code: -1029. HAL: Resource already allocated
Robots should not quit, but yours did!
The startCompetition() method (or methods called by it) should have handled the exception above.