team116 / ed2017

1 stars 0 forks source link

Code to control compressor #29

Closed cartycrabber closed 7 years ago

cartycrabber commented 7 years ago

Even though there won't be a compressor (the thing that refills the pneumatics) on the robot, according to the rules the robot has to control the compressor when we use it in the pits. Look in the rules for related stuff (section 9.8 i believe). There is probably a compressor class in WPILib. I know for sure screenstepslive has some info on setting up the compressor. You will probably want to put the code for it in the Gear class because that's what uses the pneumatics. We'll need a way to turn it on/off while in the pits. There is also a pressure sensor on the tanks that when returning true must turn the compressor off so it doesnt overload.