Go to Post Anyone who makes a minibot that poots out another minibot that blows the wall apart deserves to have it displayed in the Smithsonian. - Koko Ed [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 15-02-2016, 15:26
kmodos kmodos is offline
Registered User
AKA: Alex
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: New York
Posts: 57
kmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to behold
Re: Help with Errors

Quote:
Originally Posted by Team 3023 View Post
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.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi