I’m getting an error when deploying my robot code to the roborio, it looks something like this:
-
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.
-
********** Robot program starting **********
-
Unhandled exception: edu.wpi.first.hal.util.UncleanStatusException: Code: -1029. HAL: Resource already allocated
-
Error at frc.robot.subsystems.DriveTrainSubsystem.(DriveTrainSubsystem.java:23): 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.(PWM.java:62)
-
at edu.wpi.first.wpilibj.PWMSpeedController.(PWMSpeedController.java:25)
-
at edu.wpi.first.wpilibj.PWMVictorSPX.(PWMVictorSPX.java:39)
-
at frc.robot.subsystems.DriveTrainSubsystem.(DriveTrainSubsystem.java:23)
-
at frc.robot.commands.TeleopDriveCommand.(TeleopDriveCommand.java:20)
-
at frc.robot.RobotContainer.(RobotContainer.java:52)
-
at frc.robot.Robot.robotInit(Robot.java:48)
-
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:64)
-
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:276)
-
Robots should not quit, but yours did!
-
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:348)
-
at frc.robot.Main.main(Main.java:27)
-
Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:291): Robots should not quit, but yours did!
-
The startCompetition() method (or methods called by it) should have handled the exception above.
-
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
Here’s a link to our repository:
THanks!