|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Make sure you have at least one Solenoid or DoubleSolenoid decleared in your code. The compressor will not be initialized without having at least one:
Code:
Solenoid name = new Solenoid(1); Code:
package org.usfirst.frcEasyJ.team5122;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.DoubleSolenoid;
public class MyRobot extends IterativeRobot {
Joystick JS1 = new Joystick(1);
DoubleSolenoid DValve1 = new DoubleSolenoid(1, 2);
public void autonomousInit() {
}
public void autonomousPeriodic() {
}
public void teleoperatedPeriodic() {
if (JS1.getRawButton(1)) {
DValve1.set(DoubleSolenoid.Value.kForward);
} else {
DValve1.set(DoubleSolenoid.Value.kReverse);
}
}
public void teleoperatedInit() {
}
}
|
|
#2
|
||||
|
||||
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Just release a new PCM User's Guide today...
http://www.crosstheroadelectronics.c...ol_system.html ...please read section 4.1 and follow the steps in order to help troubleshoot. |
|
#3
|
|||
|
|||
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
I'm not sure if you can tell what's what on this photo, but I think everything pretty much matches the wiring diagrams with the exception of the CAN cables, which I reordered to match GeeTwo's suggestion to have the CAN bus terminate at the PCM. Based on the new manual, it looks like we may have software issues.
Last edited by adampaskowitz : 08-02-2015 at 20:30. |
|
#4
|
|||
|
|||
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
Quote:
RoboRioThat said, my team wired the CAN bus wrong, and it still worked. |
|
#5
|
|||
|
|||
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
You're right. Thanks. I'll switch it back, but I honestly didn't notice any difference between the way the robot responded when wired with either of those two arrangements.
|
|
#6
|
||||
|
||||
|
Re: No compressor light on PCM, no compressor power, no CAN recognition of compressor
If your CAN is hosed (disconnected of wired wrong) you will get a red light on the PCM status indicator. Make sure everything is green.
Check your pressure switch. It should be a normally closed switch, so you should sense continuity (using a meter) across the wires going into the PCM. If the status is green, and the switch if closed, but are the PCM indicator is flashing showly, and the compressor will not start, then it probably still disabled and you need to look into the code. Please also remember the code suggestions given above. The compressor WILL NOT start unless either the compressor/PCM is defined in the code or there is some pneumatic element (solenoid) defined. If you don't have any solenoids defined you will need to define the compressor: Code:
public status final Compressor myCompressor = new Compressor(0); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|