Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Pneumatics (http://www.chiefdelphi.com/forums/forumdisplay.php?f=54)
-   -   Pneumatics system code (http://www.chiefdelphi.com/forums/showthread.php?t=129776)

Team 4939 24-06-2014 12:54

Re: Pneumatics system code
 
Nothing different happened even though I changed the code, also the lights on the solenoid turned off.

adciv 24-06-2014 13:01

Re: Pneumatics system code
 
Off? Ok, it sounds like you have a bad spike relay. Replace the spike with a different one and we'll see what happens. Also, what are teh LEDs on the digital side car above the relay section showing?

Anthony4939 24-06-2014 13:15

Re: Pneumatics system code
 
Changed spike, no change. No LEDs lit on sidecar.

Team 4939 24-06-2014 13:16

Re: Pneumatics system code
 
We changed the spike but nothing different happened.

Here is how our sidecar looks right now:

http://postimg.org/image/xbjxvkuln/

Domenic Rodriguez 24-06-2014 13:19

Re: Pneumatics system code
 
Out of curiosity, have you tried hooking up your compressor yet? If the relay for your compressor is also not working, you may have an issue with your Digital Sidecar.

adciv 24-06-2014 13:20

Re: Pneumatics system code
 
Is that side car picture with or without your code in Teleop?

Team 4939 24-06-2014 13:22

Re: Pneumatics system code
 
Quote:

Originally Posted by Domenic Rodriguez (Post 1390993)
Out of curiosity, have you tried hooking up your compressor yet? If the relay for your compressor is also not working, you may have an issue with your Digital Sidecar.

We don't have our compressor connected to a relay, we just manually turn it on and off. Also all our other motors and such work through the digital sidecar, so I assume the sidecar still works.

Team 4939 24-06-2014 13:24

Re: Pneumatics system code
 
Quote:

Originally Posted by adciv (Post 1390994)
Is that side car picture with or without your code in Teleop?


The picture is with the robot on and the code loaded, but not with teleop activated.

We could turn on teleop and take another picture if you would like.

Aren Siekmeier 24-06-2014 13:30

Re: Pneumatics system code
 
Quote:

Originally Posted by Team 4939 (Post 1390996)
The picture is with the robot on and the code loaded, but not with teleop activated.

We could turn on teleop and take another picture if you would like.

Yes, we would.

All relay outputs (and all other outputs, for that matter) are disabled when the robot is not enabled from the driver station. All of these tests of whether the spike and solenoids are receiving a non-neutral signal won't do any good unless the driver station has enabled Teleop mode.

Team 4939 24-06-2014 13:36

Re: Pneumatics system code
 
Quote:

Originally Posted by compwiztobe (Post 1390997)
Yes, we would.

All relay outputs (and all other outputs, for that matter) are disabled when the robot is not enabled from the driver station. All of these tests of whether the spike is receiving a non-neutral signal won't do any good unless the driver station has enabled Teleop mode.

Here is a picture with the teleop mode activated:

http://postimg.org/image/nltuevm3n/

adciv 24-06-2014 13:46

Re: Pneumatics system code
 
The image isn't loading for me. Can you confirm the link is working for you?

Team 4939 24-06-2014 13:49

Re: Pneumatics system code
 
Quote:

Originally Posted by adciv (Post 1391001)
The image isn't loading for me. Can you confirm the link is working for you?


It was working for me, but I tried using a different website. Here is the new link:

http://s13.postimg.org/xvw9e4bzb/photo2.jpg

Aren Siekmeier 24-06-2014 14:02

Re: Pneumatics system code
 
I'll run down the whole chain here to try to locate the issue. If any these fails, don't go any further, you'll need to fix that problem before moving on.

1. Are other outputs working? For example, can you drive with Teleop enabled. If so, keep the robot in this mode (Teleop Enabled) for all other tests. In any disabled mode, all outputs are disabled. Additionally, your code only runs in Teleop Enabled.

2. What is the latest code you have compiled and deployed? This code should be declaring a Relay object on port 7, and then in OperatorControl() it should set the value to something other than kOff (kReverse or kForward).

3. If the above is true, do the LEDs on the Relay bumper show anything, while in Teleop Enabled? According to the link given previously, a relay output's LEDs will be red for reverse, green for forward, off for off.

4. Now with the relay output working properly, make sure the Spike is wired correctly to the relay output and to the PD board. Does the Spike's LED match the Digital Sidecar's relay LED (again, in Teleop Enabled)?

5. Are the solenoid wires connected appropriately to the Spike? If so, does one of the solenoids light up (again, in Teleop Enabled)?

6. ... there will be more but let's get through those first

Team 4939 24-06-2014 14:08

Re: Pneumatics system code
 
Quote:

Originally Posted by compwiztobe (Post 1391003)
I'll run down the whole chain here to try to locate the issue. If any these fails, don't go any further, you'll need to fix that problem before moving on.

1. Are other outputs working? For example, can you drive with Teleop enabled. If so, keep the robot in this mode (Teleop Enabled) for all other tests. In any disabled mode, all outputs are disabled. Additionally, your code only runs in Teleop Enabled.

2. What is the latest code you have compiled and deployed? This code should be declaring a Relay object on port 7, and then in OperatorControl() it should set the value to something other than kOff (kReverse or kForward).

3. If the above is true, do the LEDs on the Relay bumper show anything, while in Teleop Enabled? According to the link given previously, a relay output's LEDs will be red for reverse, green for forward, off for off.

4. Now with the relay output working properly, make sure the Spike is wired correctly to the relay output and to the PD board. Does the Spike's LED match the Digital Sidecar's relay LED (again, in Teleop Enabled)?

5. Are the solenoid wires connected appropriately to the Spike? If so, does one of the solenoids light up (again, in Teleop Enabled)?

6. ... there will be more but let's get through those first

The lights on the sidecar bumper are off but, the light on the spike is orange. My peers say they have never seen these lights go on before. The steps before step 3 are true.

Aren Siekmeier 24-06-2014 14:15

Re: Pneumatics system code
 
Quote:

Originally Posted by Team 4939 (Post 1391004)
The lights on the sidecar bumper are off but, the light on the spike is orange. My peers say they have never seen these lights go on before. The steps before step 3 are true.

They likely haven't seen them go on because you have never commanded a relay output before. The Relay output lights indicate the current output value.

Another thing to check: Are there any errors appearing on the diagnostics tab of the driver station? You can click Clear Errors to see if any new ones are being reported at the moment. Do this in Teleop Enabled as well. It might be that one of your safety loops is timing out, locking up your outputs. However, you report the other outputs working, so I'm not sure how this could be...

Do you have a multimeter on hand? It might also be worthwhile to unplug the cable from the spike and probe its ends, to see if the digital sidecar is sending an output despite its LED state.


All times are GMT -5. The time now is 17:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi