Go to Post Last I looked, FIRST wasn't an acronym for inspiration and recognition of robots. It was and is an acronym for inspiration and recognition of science and technology. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-02-2016, 15:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Code Not Recognizing Second PCM

We are succesfully using two PCMs, with Java.

Quote:
Originally Posted by alambert14 View Post
However, when I upload our code to the roboRIO, and enable the robot, it says

Unhandled exception: edu.wpi.first.wpilibj.util.AllocationException: Solenoid channel 0 on module 1 is already allocated at [edu.wpi.first.wpilibj.Solenoid.initSolenoid(Soleno id.java:41)...

I have not allocated that channel anywhere in the code, and it gives the same error no matter what module ID I use or channel number.
If you keep reading through the trace-back from the exception, it will show what line of your code it thinks is re-allocating channel 0 on module 1. It's possible it's somewhere in your code that you forgot about.
  #2   Spotlight this post!  
Unread 26-02-2016, 13:56
alambert14's Avatar
alambert14 alambert14 is offline
Student Programmer
AKA: Abby Lambert
FRC #2035 ("Rockin" Bots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Carmel
Posts: 14
alambert14 is an unknown quantity at this point
Re: Code Not Recognizing Second PCM

We looked through all of our code and we are certain that it was not already allocated somewhere, especially since we had not previously had a second PCM ID in our RobotMap. In addition, it says that every single channel is already allocated.
__________________
Closed Thread


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 16:19.

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