Log in

View Full Version : SmartDashboard with Iterative?


thecakeisalie
10-04-2012, 19:22
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
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
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
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(...)