|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#46
|
|||
|
|||
|
Re: Pneumatics system code
Quote:
These are the errors that show up on driver station after I click clear : Code:
WARNING <Code> 44008 occurred at FRC_NetworkCommunications <radioLostEvents> 3178.632 <radioSeenEvents> FRC: Robot radio detection times. Warning <Code> 44002 occurred at Ping Results: link-GOOD, DS radio(.4)-bad, robot radio(.1)-bad, cRIO(.2)-GOOD, FMS-bad Driver Station <time>6/24/2014 2:19:05 PM<unique#>118 FRC: Driver Station ping status has changed. We are getting 3 V on PWM section, 0 V on the relay section, and 0 V on DIO. Correction: We are getting 4 V on DIO Last edited by Team 4939 : 24-06-2014 at 14:32. |
|
#47
|
|||
|
|||
|
Re: Pneumatics system code
Any help with this issue would be greatly appreciated.
Also my team is pressuring me to re-check the code, because they think that is the case. Here is the current code that I am running: Code:
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.Relay;
public class RobotTemplate extends SimpleRobot {
RobotDrive chassis = new RobotDrive(1,2);
Joystick mainStick = new Joystick(1);
Jaguar jaguar = new Jaguar(3);
Jaguar jag = new Jaguar(4);
Compressor compressor = new Compressor(1, 1);
Relay spike = new Relay(7);
public void robotInit() {
compressor.start();
}
public void autonomous(){
chassis.setSafetyEnabled(false);
chassis.drive (-0.5, 0.08);
Timer.delay(2.0);
chassis.drive (0, 0.0);
}
public void operatorControl() {
chassis.setSafetyEnabled(true);
while (isOperatorControl() && isEnabled()) {
double speed = mainStick.getY();
double rot = -mainStick.getX();
chassis.arcadeDrive (speed, rot);
// Solenoid
spike.set(Relay.Value.kReverse);
}
}
Last edited by Team 4939 : 24-06-2014 at 21:53. |
|
#48
|
||||
|
||||
|
Re: Pneumatics system code
This line...
Code:
compressor.start(); // Relay port 1 Code:
spike.set(Relay.Value.kReverse); // Relay port 7 Last edited by Domenic Rodriguez : 25-06-2014 at 08:17. |
|
#49
|
||||
|
||||
|
Re: Pneumatics system code
Quote:
Quote:
On the relay output, is this measured between one of the signal wires (A or B) and ground (-) while Teleop is enabled? Make sure to measure both A and B relative to ground since which one is active depends on whether you are commanding forward or reverse. If you are not enabled, both will of course be off. |
|
#50
|
|||
|
|||
|
Re: Pneumatics system code
We tried switching the ribbon cable that connects to the CRIO, and still no reply. The voltage is still dead. We really doubt that the relay section of the sidecar is the only thing disabled, because everything else is working. We measured voltage with teleop enabled as well. We don't know where to go from here.
We don't have a spare sidecar, so any other solutions would be greatly appreciated. |
|
#51
|
||||
|
||||
|
Re: Pneumatics system code
Quote:
|
|
#52
|
|||
|
|||
|
Re: Pneumatics system code
A and neg, B and neg on relay and no voltage.
Red and black, white and black, red and white on wire coming from relay, zero voltage. All other parts of the SC work perfectly. No Color on LEDs for relay, never seen them on, but never used the relay either. |
|
#53
|
||||
|
||||
|
Re: Pneumatics system code
Have you tested all of the relay outputs this way? It sounds like somehow your relay outputs don't work, even though the rest of your sidecar is healthy (you are able to drive, right?). It would be real easy to swap in another to test this point in the system, if only you had another. I saw that you're quite close to several other teams in the Toronto area, perhaps you could contact one of them about borrowing one? And I'm sure someone in your area will be more than happy to spend some time helping with anything else.
|
|
#54
|
|||
|
|||
|
Re: Pneumatics system code
Yes we did test all of our outputs, and it is very odd indeed that only the relay section is not working on the sidecar. By the way we are able to drive the robot.
Unfortunately we are about done for the season, and won't be looking into replacing this sidecar, for the rest of the Summer. When we come back in September a new sidecar will be a priority, and hopefully that fixes the problem. For now I would like to thank all the people who took out the time to help us try and solve this issue. Before we end this thread I just wanted to ask, if a pneumatics module would be more reliable in this type of situation? Thank you once again and have a great summer break everybody. |
|
#55
|
||||
|
||||
|
Re: Pneumatics system code
Quote:
Both the solenoid breakout and the sidecar are honestly pretty reliable, but the solenoid breakout on the cRio will only power the solenoids. You still need a relay output and a spike to power any onboard compressor. If you're referring to the new PCM for next year, it's hard to say before we get our hands on the details, but I'm sure it will be more than capable as well. Perhaps you could remove the casing and do some more inspection of the circuit board with your DMM, referencing the schematic. The behavior does seem a bit curious, and I feel like we're missing something... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|