Go to Post That statement makes far too much sense for me to understand it. - Aignam [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 02-14-2014, 07:20 PM
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Compressor issue

We're having a weird problem with our compressor that we can't seem to figure out. Our compressor refuses to turn on. What we've done in attempt to remedy the issue is to command each of the individual components individually (the relay and the pressure switch). The relay works, and turns on the compressor, as expected, when it's set to 'on'. The pressure switch returns false when without pressure (in it's normal state), and presumably true when at max (we just manually connected and disconnected the wires to it). Does anyone have any idea what the issue is? I'm not sure what it is, but I think the pressure switch values may need to be negated. We're initializing the compressor system like this:
Code:
 compressorPointer = new Compressor(14, 1); //1 is the Digital I/O, and 14 is the Relay port
		compressorPointer->Start();
The spike shows a solid orange/yellow light when we do so, but that's it. We've tried switching the input (1,14 to 14,1) which didn't help at all. We've also tried putting compressorPointer->Start(); at the beginning of teleop (outside of the while loop) and at the beginning of autonomous. The switch is wired to the signal and negative pins on port 14 on the DIO on the sidecar. We've tried multiple sensors. Any ideas are welcome. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-15-2014, 08:58 AM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Compressor issue

Code:
compressorPointer = new Compressor(14, 1); //1 is the Digital I/O, and 14 is the Relay port
		compressorPointer->Start();
Relay 14?? There are only 8 relay outputs on the Digital Sidecar.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-15-2014, 10:30 AM
mrklempae mrklempae is offline
Registered User
no team
 
Join Date: Jan 2013
Location: Montana
Posts: 19
mrklempae is an unknown quantity at this point
Re: Compressor issue

... sorry... I posted the wrong code. We tried everything we could think of, including switching those around. Every time except our last desperate attempt, it was (1,14), not (14,1).
Reply With Quote
  #4   Spotlight this post!  
Unread 02-15-2014, 10:58 AM
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Compressor issue

Try it at 1,1 and move your wires. Perhaps you are not counting the ports correctly and putting the wire tin the correct place. it is easy to do.
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #5   Spotlight this post!  
Unread 02-16-2014, 07:50 PM
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Compressor issue

You should leave it at (14, 1). The first number is the pressure switch input, the second is the relay channel.

It is possible that you have a bad port on your digital sidecar. Try different ports as suggested above and try it again.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-22-2014, 09:48 AM
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Compressor issue

Ours compressor is working fine with the (14,1) parameters. Make sure that your relay cable is wired correctly. We had a problem with the signal and ground wire being reversed.

HTH,

Mike
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


All times are GMT -5. The time now is 03:43 AM.

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