View Single Post
  #1   Spotlight this post!  
Unread 01-02-2014, 03:39
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Exclamation Compressor will not turn on.

As the title I am having issues setting up the compressor to run on the robot. I have compressor fully wired up with the spike relay with the PWM going to the relays on the Digital Sidecar, then I have the pressure switch hooked up to the signal and ground wires of PWM coming from the GPIO on the Digital Sidecard but I can't get the compressor to turn on when I turn on the robot.

Code:
airCompressor = new airCompressor(1,1);
airCompressor->Start();
I have the object creation in BuiltinDefaultCode and the start call in RobotInit

I have checked the cables with a multimeter and they're all working, I checked the pressure switch with a multimeter it is not broke as well, I tested the compressor and it is not seized.

It would be greatly appreciated if someone could tell me where I went wrong with setting up the compressor to run on board the robot.