Go to Post if you want FIRST people to sign a petition, July isn't the best time to do it. - Pault [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2010, 15:15
msk msk is offline
Registered User
FRC #2177
 
Join Date: Jan 2009
Location: Minnesota
Posts: 4
msk is an unknown quantity at this point
Already allocated ports for Relays?

My students had some weird stuff going on last night while trying to test out some of the code they wrote to turn a Relay on and off with a joystick button.

Code compiled and downloaded to the robot fine, but when enabled, the robot did nothing (even driving code that previously worked did nothing).

Switching over to the developer side, we noticed an allocation error for our Relay channel. It said that channel had already been used. We have it on the digital sidecar, using slot 6, channel 2. We have no other Relays connected, though do have Jaguars plugged into the other side of the sidecar. No where else in the code do we assign a Relay to the same channel.

Last year, we used C++ with pretty much the same code we are trying in Java now.

Any one else experience errors like this and know what we're missing?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2010, 16:31
msk msk is offline
Registered User
FRC #2177
 
Join Date: Jan 2009
Location: Minnesota
Posts: 4
msk is an unknown quantity at this point
Re: Already allocated ports for Relays?

i'll answer my own question. just in case other teams experience the same problem.....

it turns out that if there is not a second set of green lights at the bottom of the sidecar, all relay ports are unhappy. we switched over to the other sidecar, which did have the happy green lights, and all is good in relay land.

moral of the story: don't always trust the electrical team when they tell you things are ready to go.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2010, 02:34
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Already allocated ports for Relays?

This thread is strange. An error that claims a relay is already in use is always a software problem. The software does not know if the sidecar is powered or not. Naturally it does need to be powered for it to actually work, but it has nothing to do with the errors.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
90 Degree Ports for RC cardswin2005 Control System 2 10-03-2008 16:59
Calculating relays. VEN Electrical 3 24-04-2007 22:23
Programming relays railerobotics Programming 2 03-02-2006 15:00
pwms for relays reilly Motors 3 18-02-2005 15:02
SPIKE relays Andy Brockway Electrical 2 13-11-2002 13:22


All times are GMT -5. The time now is 22:42.

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