Go to Post You just have to care enough to give it a try. Your mentors will appreciate the effort. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 17-02-2008, 17:01
DRH2o's Avatar
DRH2o DRH2o is offline
Registered User
AKA: Dan Waters
FRC #1598 (Team Talon)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Danville, VA
Posts: 147
DRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of light
Relays Reversing On Their Own

I have 5 relays that will reverse on their own at various times. Nothing has to be happening to make this take place. I changed the controllers that are controlling these relays. There are no sensors or limits on these. They are not programmed to be controlled in reverse, just forward. There is nothing fancy in the code -- I did add set relay forward to off and ignore reverse before the loop in operatorcontrol. ????

Last edited by DRH2o : 13-03-2008 at 09:21.
  #2   Spotlight this post!  
Unread 17-02-2008, 22:33
lasereyes's Avatar
lasereyes lasereyes is offline
College Student Mentor
AKA: Farzin Fatollahi-Fard
FRC #2551 (Penguin Empire)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Novato, CA
Posts: 114
lasereyes is an unknown quantity at this point
Send a message via AIM to lasereyes
Re: Relays Reversing On Their Own

I remember something from past experiences (I might be wrong), that the Tank control block and the OI to Relay (or OI to anything) shouldn't be 'placed in the same immediate loop'. I could be thinking of another problem, but I think you should try this:

Again, I'm not sure this would work, but try it anyway. Make a function and put in a 'Digital OI Input' and have it save to a variable (be careful, this var has to be an 'unsigned char'). Then have an If statement test to see if that variable == 1. Then put a SetRelay command and set it to forward. Following the If, i put an Else, and a SetRelay to set the relay to neutral.

I have an attachment picture which illustrates this.

I hope it helps.
Attached Thumbnails
Click image for larger version

Name:	digitaloiinput.JPG
Views:	103
Size:	116.5 KB
ID:	6305  
__________________
FRC #2551 (FTC #646): Penguin Empire
2008 Rookie Team
2008 UC Davis Sacramento Regional Finalists (thanks to 1388, 1072, and 2390)
2008 UC Davis Sacramento Regional Highest Rookie Seed (#2!)

  #3   Spotlight this post!  
Unread 18-02-2008, 11:27
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Relays Reversing On Their Own

We have never seen any issues like you describe and your program looks fine.
You don't need to break up OI to RC based functions you can slap them in line just like you have.

I would check and make sure your backup battery is charged as it might be the RC reseting under a low main battery. You may want to fire up the IFI dashboard
and see if your joysticks have a messed up button.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #4   Spotlight this post!  
Unread 21-02-2008, 10:09
Mike Smith Mike Smith is offline
Registered User
FRC #1561 (Robo Ducks)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Oklahoma
Posts: 5
Mike Smith is an unknown quantity at this point
Re: Relays Reversing On Their Own

We had the same issue last year - and our pneumatics would not work. We had to reset the robot from the OI. We had a new programmer this year, and totally re-wrote last years program, and the relays would reverse on their own. I could turn the robot on, and let it set there doing nothing. At random times the relay would reverse, because a cylinder would actuate on it's own.

This year, it has happened twice - which is much less frequent than last year.

We had a fresh main battery, and a fresh backup battery also. So far we have had no luck finding the problem. We even tried to reinitialize the relays every time through the loop - to no avail.


Maybe we can solve this problem eventually!

Thanks,

Mike
1561
  #5   Spotlight this post!  
Unread 21-02-2008, 10:35
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Relays Reversing On Their Own

This type of problem is capable with PWM cable that are not fully inserted. If you are using the newer Spike it is more difficult to get the cable fully inserted. Remember that the Spike input is a wire for each of two relays, it is not a PWM signal. If one of the inputs is intermittant and meant to be pulled to ground, the Spike will pull up when the connector is open. If your Spike has had the input spread open, it is possible to have an intermittant connection.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reversing motors railerobotics Programming 5 16-01-2006 18:36
Reversing controls? Calvin Programming 10 14-03-2005 22:46
Are your solenoids firing on their own? Mr. Lim Pneumatics 7 23-02-2005 04:19
Who has their own, personal robot? Caleb Fulton General Forum 1 14-04-2003 10:26


All times are GMT -5. The time now is 15:37.

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