Go to Post I am a big fan of community building exercises. And harassing my friends. - Amanda Morrison [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-03-2016, 09:58
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
More than 1 Sendablechooser

Can there be more than 1 SendableChooser? The second one seems to replace the first on the dashboard.
__________________
Brian K
Team 1225 Robotics Mentor
  #2   Spotlight this post!  
Unread 19-03-2016, 10:54
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is online now
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 148
nickbrickmaster is an unknown quantity at this point
Re: More than 1 Sendablechooser

It should work. Are both named something unique?
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
  #3   Spotlight this post!  
Unread 19-03-2016, 11:15
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: More than 1 Sendablechooser

we are using 3.
  #4   Spotlight this post!  
Unread 19-03-2016, 11:53
rwodonnell rwodonnell is online now
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

Can anyone with multiple choosers point to their code online? We are thinking of adding a couple of Sendables as well in order to add more customization to our autonomous. We'd like to do it in a way that doesn't create a million options on the Smart Dashboard, but still allows for a lot of configuration before the match.
  #5   Spotlight this post!  
Unread 19-03-2016, 15:07
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 97
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: More than 1 Sendablechooser

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)

Just in case you aren't aware of auto-boxing (introduced in Java 5), that's what lets you put primitives in an object. Java automatically promotes it to a wrapper object so boolean becomes Boolean automatically.

Feel free to ask questions about the code!
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
  #6   Spotlight this post!  
Unread 19-03-2016, 16:33
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: More than 1 Sendablechooser

I think you're just experiencing a rendering issue... I noticed on the newest SD that send able choosers don't seem to provide valid layout hints to whatever style class they are using. If you CTRL + e and drag the chooser away you should be able to find the additional choosers under the first
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
  #7   Spotlight this post!  
Unread 21-03-2016, 11:37
rwodonnell rwodonnell is online now
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.
  #8   Spotlight this post!  
Unread 21-03-2016, 12:35
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,137
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: More than 1 Sendablechooser

The Smart Dashboard chooser was taking up too much real estate on the screen. We made a USB device to plug into the Driver Station. It has 15 button capability (plus one button for Turbo, but that has a predefined action).

http://smile.amazon.com/dp/B00UUROWWK/

We got these buttons to go with it (you want latching buttons, not momentary contact, also round is easier to cut out a mounting hole than rectangular):
http://smile.amazon.com/gp/product/B00E0L2AG2
http://smile.amazon.com/gp/product/B0094GCUYA
http://smile.amazon.com/gp/product/B00TX2TR50

The device installed automatically with Windows 10. Driver station recognized it immediately as a JoyStick. No problems using WPLIB/C++ to read the button values.

You can either setup your code to:
1) Buttons tell robot how far to drive, turn, etc.
2) Buttons tell: i) which position is the robot in; ii) which defense is in front of it; iii) whether to shoot or not; iv) whatever, and let the code figure out what sequence of commands to execute.

Last edited by rich2202 : 21-03-2016 at 12:39.
  #9   Spotlight this post!  
Unread 21-03-2016, 13:17
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,587
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: More than 1 Sendablechooser

Quote:
Originally Posted by rich2202 View Post
The Smart Dashboard chooser was taking up too much real estate on the screen. We made a USB device to plug into the Driver Station. It has 15 button capability (plus one button for Turbo, but that has a predefined action).
When are you reading this data? I always thought the software blanked any joystick data coming from the driver station during autonomous. Or am I being betrayed by my memories of the IFI system?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #10   Spotlight this post!  
Unread 26-03-2016, 23:28
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 97
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: More than 1 Sendablechooser

Quote:
Originally Posted by rwodonnell View Post
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?
Correct. Our robot is physically incapable of going under the low bar so no need to have an auton for it.

Quote:
Originally Posted by rwodonnell View Post
Out of curiosity, what do you use the operatorChooser for? I didn't see its use in the code.
Our primary operator prefers the up arrow to mean a different thing than the backup operator based on the video games he plays. We dealt with this by having the command check which mode it is in. We didn't want to have to load code based on who the operator is.
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
  #11   Spotlight this post!  
Unread 27-03-2016, 14:39
christheman200's Avatar
christheman200 christheman200 is offline
Chris Lansdale, Programmer
AKA: Chris Lansdale
FRC #0854 (Iron Bears)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Toronto, Ontario
Posts: 31
christheman200 is an unknown quantity at this point
Re: More than 1 Sendablechooser

Sendable choosers are great, but I would caution teams against using them. At GTRC we were rarely able to establish coms through the smart dashboard, and many other teams were having this problem as well. Smart dashboard is not a very reliable option, so I would warn against using it to select your auto. We ended up changing our selected auto through a code re-upload before every match, although we'll be using a set of physical switches on the robot in the future.
  #12   Spotlight this post!  
Unread 27-03-2016, 14:55
lethc's Avatar
lethc lethc is offline
#gkccurse
AKA: Becker Lethcoe
FRC #1806 (S.W.A.T.)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Smithville, MO
Posts: 118
lethc will become famous soon enough
Re: More than 1 Sendablechooser

Quote:
Originally Posted by christheman200 View Post
Sendable choosers are great, but I would caution teams against using them. At GTRC we were rarely able to establish coms through the smart dashboard, and many other teams were having this problem as well. Smart dashboard is not a very reliable option, so I would warn against using it to select your auto. We ended up changing our selected auto through a code re-upload before every match, although we'll be using a set of physical switches on the robot in the future.
What programming language do you use?

We had big issues with SmartDashboard last year when we were using LabVIEW.

We switched to Java this year and have had no issues with SmartDashboard or SendableChoosers (we use 6) through 2 competitions.
__________________
2016: Greater Kansas City Regional Finalists, Oklahoma Regional Winners, Tesla Semifinalists, IRI Quarterfinalists
2015: Greater Kansas City Regional Finalists, Oklahoma Regional Winners, Tesla Quarterfinalists, IRI Winners
2014: Central Illinois Regional Quarterfinalists, Greater Kansas City Regional Finalists, Newton Semifinalists
2013: Greater Kansas City Regional Winners, Oklahoma Regional Winners, Galileo Quarterfinalists
  #13   Spotlight this post!  
Unread 27-03-2016, 15:43
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: More than 1 Sendablechooser

Quote:
Originally Posted by lethc View Post
What programming language do you use?

We had big issues with SmartDashboard last year when we were using LabVIEW.

We switched to Java this year and have had no issues with SmartDashboard or SendableChoosers (we use 6) through 2 competitions.
We've used Java and Sendable Choosers for 2 years now. Last year it was horrible. There were multiple matches at all of our competitions where we ended up without field-centric driving on our swerve drive because we used a SendableChooser to indicate which direction the robot was facing at the start of the match.

This year it has worked without any problems for us, and we have 3 SendableChoosers.
  #14   Spotlight this post!  
Unread 27-03-2016, 19:40
christheman200's Avatar
christheman200 christheman200 is offline
Chris Lansdale, Programmer
AKA: Chris Lansdale
FRC #0854 (Iron Bears)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Toronto, Ontario
Posts: 31
christheman200 is an unknown quantity at this point
Re: More than 1 Sendablechooser

We're programming in Java. While you might not have problems in a particular year, I'd really advise against it. You never know when it's going to act up, and this can change from event to event. One of our mentors was the volunteer that diagnosed some of the larger SD problems in 2014, and he feels it's poorly written and prone to problems.
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 10:17.

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