Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   smartdashboard widget sendable chooser (http://www.chiefdelphi.com/forums/showthread.php?t=114592)

lemonzap 03-03-2013 16:11

smartdashboard widget sendable chooser
 
I'm making a custom smartdashboard widget and wanted to use the sendable chooser class. So far it seems like that code is only available in the robot library. Is there any way I can use that class or something similar in a widget.

Joe Ross 03-03-2013 16:15

Re: smartdashboard widget sendable chooser
 
The code for the sendable chooser widget is in the SmartDashboard source, in the Chooser class.

lemonzap 03-03-2013 18:00

Re: smartdashboard widget sendable chooser
 
Quote:

Originally Posted by Joe Ross (Post 1242926)
The code for the sendable chooser widget is in the SmartDashboard source, in the Chooser class.

I'm having trouble finding information on how to use this chooser. Is there a javadoc somewhere?

BradAMiller 05-03-2013 20:03

Re: smartdashboard widget sendable chooser
 
Check out this web page. It has an example of using a SendableChooser for selecting one of many Autonomous programs. Of course you can use it for any purpose in the same way.

http://wpilib.screenstepslive.com/s/...smartdashboard

Brad


All times are GMT -5. The time now is 22:15.

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