View Single Post
  #2   Spotlight this post!  
Unread 09-02-2014, 20:42
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Compressor will not start!

Quote:
Originally Posted by DangitDrBob View Post
Hello! Team 4135 Programmer here.

We are having issues with our compressor. It will not start when we tell it to with our program. We are using C++ and Wind River to program it. We do not get any errors when compiling the program, and our robot does everything else that it is supposed to. We have the Vex Spike relay plugged into the compressor and the digital side car relay port 1. The Pressure Switch is plugged into the digital side car Digital I/O port 1. All of the code that pertains to the compressor is as follows (but in the right spots):

Compressor Ac; //Declaring the compressor
Ac(1,1), //Digital I/O port 1, Relay port 1
Ac.Start(); //Run the compressor

If you want the whole code I have attached it in a .txt file so that you can see the whole thing. We have tried to program the compressor purely as a relay ( Relay Ac; Ac(1); Ac.Set(Relay:: kOn); ) The Spike relay does not change colors from the default red/orange when we run the program. We have tested the Spike relay and its fuse and both are working properly. We have tried swapping all of the wires involved. The Digital Side Car's power lights are lighting up (all three), but the LED lights next to the relay port are NOT lighting up. We tested the compressor by hooking it up directly to a battery and it worked. We have tried using a brand new Digital Side Car but to no avail. We think think the problem may be with DSC, the cRIO or something in that area. Any suggestions would be greatly appreciated!! Thanks!
This might be a dumb question, but have you tried flipping around the cable in the DSC/relay? We've had issues with one of the two being backwards in the past. Do your motors / digital IO work correctly? If so, I don't think it's the DSC or the cRIO as a failure in either is unlikely.