View Single Post
  #11   Spotlight this post!  
Unread 17-11-2015, 12:57
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Commands Stop Everything

Quote:
Originally Posted by origamitaco View Post
Ok so I separated the elevator code into its own command instead of having it in robot.java. The catch is I now have to call that command with a trigger or button to use the elevator. This solves my problem but I would like to use it without pulling my trigger. To do this would I just take the code and put it in the elevator subsystems default command? Same with drive train I assume, if I'm going to be using commands with it as well.
Correct, you'll use whatever command you want as the defaults for both subsystems and set them as the default commands using setDefaultCommand().

If you are looking for some examples you can look at out past code.
2014
2015
Reply With Quote