View Single Post
  #1   Spotlight this post!  
Unread 09-02-2014, 20:34
DangitDrBob DangitDrBob is offline
Registered User
FRC #4135
 
Join Date: Jan 2014
Location: Modesto, CA
Posts: 6
DangitDrBob is an unknown quantity at this point
Compressor will not start!

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!
Attached Files
File Type: txt 2014RobotCode.txt (3.2 KB, 34 views)