Eclipse isn’t showing any errors on the Robot.java but when we try to run the code for he riolog shows this:
âž” Launching «’/usr/local/frc/JRE/bin/java’ ‘-Djava.library.path=/usr/local/frc/lib/’ ‘-jar’ '/home/lvuser/FRCUserProgram.jar’»
********** Robot program starting **********
Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249): ERROR Unhandled exception: java.lang.RuntimeException: Code: -1029. HAL: Resource already allocated at [edu.wpi.first.wpilibj.hal.PWMJNI.initializePWMPort(Native Method), edu.wpi.first.wpilibj.PWM.<init>(PWM.java:61), edu.wpi.first.wpilibj.SafePWM.<init>(SafePWM.java:24), edu.wpi.first.wpilibj.PWMSpeedController.<init>(PWMSpeedController.java:23), edu.wpi.first.wpilibj.Talon.<init>(Talon.java:36), edu.wpi.first.wpilibj.RobotDrive.<init>(RobotDrive.java:94), org.usfirst.frc.team6620.robot.Robot.robotInit(Robot.java:37), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:64), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)]
WARNING: Robots don’t quit!
—> The startCompetition() method (or methods called by it) should have handled the exception above.
I don’t know what is going wrong and it seems like it has something to do with the base code but I’m not sure. Does anyone know what is happening or how to fix it?