Go to Post If you squeeze cost out hard enough, any component can become a failure point. - EricVanWyk [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 21-03-2016, 11:37
rwodonnell rwodonnell is offline
Registered User
AKA: Rick O'Donnell
FRC #2876 (Devilbotz)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Burlington, MA, USA
Posts: 52
rwodonnell is a splendid one to beholdrwodonnell is a splendid one to beholdrwodonnell is a splendid one to beholdrwodonnell is a splendid one to beholdrwodonnell is a splendid one to beholdrwodonnell is a splendid one to beholdrwodonnell is a splendid one to behold
Re: More than 1 Sendablechooser

Quote:
Originally Posted by Jeanne Boyarsky View Post
Yes, you can use multiple sendable choosers. This code on github shows working code with multiple SendableChoosers. It also shows how to use non-command types in the choosers. (We use an integer in one of our extras and a boolean in another)
Awesome, thanks for the link! Love how you have auto for the Portcullis and Cheval de Frise. I was a little surprised you didn't have a choice for the low bar, but perhaps your bot is tall? We have thought about writing one for the Portcullis and CdF but haven't yet. Because we have the low bar and B and D defenses, we can always do auto but would be fun to try the category A defenses too, but have invested our time elsewhere for now.

The reason we were interested in multiple choosers is that we are working on an auto where we cross our defense (cat B, D or E), turn left or right, travel to the Sally Port / Drawbridge and come back through it halfway and hold the door for teams to start crossing it immediately in teleop. (Like a lot of teams, we have wasted time on the field either waiting during teleop for this little bit of teamwork and thought perhaps it would be a helpful mode when we are aligned with teams with no auto.) So the choosers would be our existing one for the defense (looks almost identical to yours!) and then the direction of the cat C defense (left or right) and then how many stalls over it is.

Out of curiosity, what do you use the operatorChooser for? I didn't see its use in the code.
 


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 03:49.

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