Quote:
Originally Posted by origamitaco
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