Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Changing Drive Modes with Button Input (http://www.chiefdelphi.com/forums/showthread.php?t=133730)

FireAmpersand 30-01-2015 18:43

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.

Ben Wolsieffer 30-01-2015 19:05

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.

FireAmpersand 30-01-2015 19:11

Re: Changing Drive Modes with Button Input
 
If possible, can you show us some sample code?

FireAmpersand 30-01-2015 19:21

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