|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Changing Drive Modes with Button Input
We are using Java Command-Based programming and are trying to change the drivestyle with the press of a button. However, we are unable to change our subsystem's default command to change the drivestyle.
|
|
#2
|
|||
|
|||
|
Re: Changing Drive Modes with Button Input
You should be able to make two Commands, which both require your drive subsystem. Then just bind the whenPressed action of a button to each Command. This will make each Command interrupt the other when they are started.
|
|
#3
|
||||
|
||||
|
Re: Changing Drive Modes with Button Input
If possible, can you show us some sample code?
|
|
#4
|
||||
|
||||
|
Re: Changing Drive Modes with Button Input
Nevermind, thank you so much for the suggestion, it worked. Good luck in your last few weeks
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|