View Single Post
  #6   Spotlight this post!  
Unread 02-04-2015, 06:38 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Use of JoystickButton in Command Based does not activate PCM

Quote:
Originally Posted by bob.wolff68 View Post
I think the problem you're seeing is the same that we scratched our heads on for a while... this year there is no Compressor class. This year, you hook the pressure switch to the PCM and the power from the compressor to the PCM. Then in your code, the MAGIC (ok it's not magic - it's a matter of reading the right paragraph on the right page of screensteps - sigh) is to instantiate a Solenoid.

You don't even need to USE the Solenoid...just instantiate it in your robot class and then enable the robot.

Solenoid testCompressorTurningOn;

...no ... they have a DoubleSolenoid in their ExampleSubsystem, which is instantiated in CommandBase::init(), so that seems ok...

Are you guys still having the symptom with the simple example you posted?
I haven't seen it misbehave yet.
Reply With Quote