|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Compressor doesn't start
We were testing our pneumatics code for the first time today, and when we enabled the robot, the compressor didn't start. We have this code in robotInit:
Compressor compressor = new Compressor(0); compressor.start(); compressor.setClosedLoopControl(true); No one saw any issues with the wiring. Can anyone help us figure out what's going on? |
|
#2
|
||||
|
||||
|
Re: Compressor doesn't start
even if you think there weren't issues with wiring, can you describe it?
also, are you creating any solenoids in your code? |
|
#3
|
||||
|
||||
|
Re: Compressor doesn't start
The compresser power wires and the pressure switch were both plugged in properly. I'm pretty sure the CAN wires were also, but I will need to check. If not, that may be a problem. We are not yet creating solenoids in code.
|
|
#4
|
||||
|
||||
|
Re: Compressor doesn't start
Check on the web dashboard to make sure your PCM is working and actually has the CAN ID 0. If you click the "self test" button on the PCM page, you can also see if there are any faults (such as a compressor short)
|
|
#5
|
||||
|
||||
|
Re: Compressor doesn't start
Please follow the troubleshooting steps in section 4.1 of the pcm user's guide.
http://www.ctr-electronics.com/pcm.h...ical_resources |
|
#6
|
||||
|
||||
|
Re: Compressor doesn't start
Turns out the port number had been changed without me knowing. Thanks to everyone who provided advice. It works now!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|