Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   SmartDashboard with Iterative? (http://www.chiefdelphi.com/forums/showthread.php?t=105558)

thecakeisalie 10-04-2012 19:22

SmartDashboard with Iterative?
 
Just out of curiosity, is it possible to use smartdashboard with interative? (Without the commandbase parts). If it is possible, how?
Having tried to use commandbase several times, i find myself switching back to Iterative, and then deciding to rewrite commandbase because smartdashboard makes everything so much more convenient.

Lalaland1125 11-04-2012 09:44

Re: SmartDashboard with Iterative?
 
You simply write a SmartDashboardData class and use SmartDashboard.putData to send custom objects to the SmartDashboard.

On the driver station side you create a widget that registers for the type that you are sending.

thecakeisalie 11-04-2012 16:43

Re: SmartDashboard with Iterative?
 
Doesn't doing that in commandbase automatically create a widget? So are you saying that with iterative, you would have to create a widget manually?

Sunstroke 11-04-2012 17:41

Re: SmartDashboard with Iterative?
 
Quote:

Originally Posted by thecakeisalie (Post 1156918)
Doesn't doing that in commandbase automatically create a widget? So are you saying that with iterative, you would have to create a widget manually?

You can use SmartDashboard without using the command parts of WPILibJ.

For instance, you can put doubles in by using SmartDashboard.putDouble(...) and take them out by using SmartDashboard.getDouble(...)


All times are GMT -5. The time now is 10:04.

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