View Single Post
  #4   Spotlight this post!  
Unread 11-01-2017, 17:33
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 158
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: SendableChooser changes and errors

Joe - thanks for the pointer. I'll take a look at it working with an object instead of a int, but that seems a bug to me if it only works with objects. As for your statement about overkill ... this is being used for picking an autonomous 'mode' prior to match start ... how can you utilize SmartDashboard to do that? I don't see any way to choose from a list or a set of radio buttons or just buttons to do that.

Euhlmann - while I understand the error notes the different types, this is a template class now and as such, looking at the definition of GetSelected() shows that the type "T" of the template is used as the return type for that function. I templated it with <int> and yet the return of GetSelected() isn't returning that int.

roboBob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote