
15-02-2016, 15:26
|
|
Registered User
AKA: Alex
 FRC #1126 (SparX)
Team Role: Programmer
|
|
Join Date: Jan 2014
Rookie Year: 2013
Location: New York
Posts: 57
|
|
|
Re: Help with Errors
Quote:
Originally Posted by Team 3023
Hey, we are new to programming and when we run the code, we get this error.
Code:
ERROR Unhandled exception: java.lang.RuntimeException:
Code: -1029. HAL: Resource already allocated at [edu.wpi.first.wpilibj.hal.PWMJNI.allocatePWMChannel(Native Method),
edu.wpi.first.wpilibj.PWM.initPWM(PWM.java:117),
edu.wpi.first.wpilibj.PWM.<init>(PWM.java:134),
edu.wpi.first.wpilibj.SafePWM.<init>(SafePWM.java:35),
edu.wpi.first.wpilibj.Talon.<init>(Talon.java:51),
org.usfirst.frc.team3023.robot.DriveTrain.<init>(DriveTrain.java:10),
org.usfirst.frc.team3023.robot.Robot.robotInit(Robot.java:122),
edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:72),
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:241)]
We are wondering if anyone has a solution to this
|
You are trying to allocate the same PWM more than once.
|