![]() |
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.
|
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.
|
Re: Changing Drive Modes with Button Input
If possible, can you show us some sample code?
|
Re: Changing Drive Modes with Button Input
Nevermind, thank you so much for the suggestion, it worked. Good luck in your last few weeks :)
|
| All times are GMT -5. The time now is 01:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi