Go to Post A few years of stress is worth a lifetime of opportunity. - omegasis25 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2015, 18:43
FireAmpersand's Avatar
FireAmpersand FireAmpersand is offline
Registered User
AKA: Manning Team Co-Captian
FRC #4627 (Manning Robotics)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Calgary, Canada
Posts: 34
FireAmpersand is an unknown quantity at this point
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   Spotlight this post!  
Unread 30-01-2015, 19:05
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
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.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #3   Spotlight this post!  
Unread 30-01-2015, 19:11
FireAmpersand's Avatar
FireAmpersand FireAmpersand is offline
Registered User
AKA: Manning Team Co-Captian
FRC #4627 (Manning Robotics)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Calgary, Canada
Posts: 34
FireAmpersand is an unknown quantity at this point
Re: Changing Drive Modes with Button Input

If possible, can you show us some sample code?
  #4   Spotlight this post!  
Unread 30-01-2015, 19:21
FireAmpersand's Avatar
FireAmpersand FireAmpersand is offline
Registered User
AKA: Manning Team Co-Captian
FRC #4627 (Manning Robotics)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Calgary, Canada
Posts: 34
FireAmpersand is an unknown quantity at this point
Re: Changing Drive Modes with Button Input

Nevermind, thank you so much for the suggestion, it worked. Good luck in your last few weeks
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi