computronix
08-02-2014, 16:43
Hey guys,
We're having a lot of trouble getting the air compressor to turn on and regulate itself via a Spike Relay. Here's our setup:
We have the DSC plugged into the cRIO and all three power lights are brightly lit
The Spike Relay is plugged into the DSC on relay port 1 and the light is amber
The pressure switch is also plugged into the DSC on DIO port 1
The light on the Spike Relay does NOT turn green when it should be enabled, and the light next to the relay port on the DSC does NOT turn green when it should
Here is a link to our code, if you'd like to take a look. (http://github.com/jagbot4638/frc2014) The compressor code is in the UpdatePressure class in the launcher package.
Any help would be appreciated. We've been working on this for two days with no luck. All we know is that the problem is between the DSC and the Spike Relay, but we can't figure out why.
We're having a lot of trouble getting the air compressor to turn on and regulate itself via a Spike Relay. Here's our setup:
We have the DSC plugged into the cRIO and all three power lights are brightly lit
The Spike Relay is plugged into the DSC on relay port 1 and the light is amber
The pressure switch is also plugged into the DSC on DIO port 1
The light on the Spike Relay does NOT turn green when it should be enabled, and the light next to the relay port on the DSC does NOT turn green when it should
Here is a link to our code, if you'd like to take a look. (http://github.com/jagbot4638/frc2014) The compressor code is in the UpdatePressure class in the launcher package.
Any help would be appreciated. We've been working on this for two days with no luck. All we know is that the problem is between the DSC and the Spike Relay, but we can't figure out why.