Log in

View Full Version : Smartdashboard


inkspell4
03-11-2012, 13:17
This is my teams first real year using java and i was wondering where i might find files and tutorials relating to the smartdashboard

F22Rapture
03-11-2012, 13:21
http://www.youtube.com/watch?v=qnS6O04Yjrc

http://firstforge.wpi.edu/sf/docman/do/downloadDocument/projects.smartdashboard/docman.root/doc1205/4

http://wpilib.screenstepslive.com/s/3120/m/7932

http://firstforge.wpi.edu/sf/wiki/do/viewPage/projects.smartdashboard/wiki/Extensions

Subversion repo address for SmartDashboard (requires a firstforge account to access): http://firstforge.wpi.edu/svn/repos/smart_dashboard

And there's also a small section in the WPILib cookbook on the SMTDB starting on page 56:
http://www.wbrobotics.com/attachments/article/11/WPILibCookbook.pdf

inkspell4
03-11-2012, 14:06
Great thanks also do u have any programs i may be able to look at that use it

F22Rapture
03-11-2012, 14:35
What do you mean? Extensions, or robot code?

inkspell4
03-11-2012, 19:09
Robot code
What do you mean by extensions

F22Rapture
03-11-2012, 19:25
Robot code
What do you mean by extensions

SmartDashboard allows you to make extensions that can do different things. If you wanted to, you could easily create alternates to the dials and meters that are shipped with the smart dashboard, and to do that you would just make an extension, compile it, and put it into the C:\Program Files\SmartDashboard\Extensions directory. There was one team last year that made an extension which used sensors on their ball lift to detect where the ball was and then it would draw an icon for the ball over a picture of the robot on their dashboard.

The most common use of SmartDashboard extensions is vision processing. So the video feed gets transferred from the robot to the driver station over networktables and then the driver station pc does the actual processing, and then it sends the information back to the robot to be used for tracking or however it was programmed.

To answer your question I think the majority of the links I posted deal with the robot-side code.

inkspell4
03-11-2012, 22:07
I was thinking more of example code that i could play around with and see exactly how it works

F22Rapture
03-11-2012, 23:25
I was thinking more of example code that i could play around with and see exactly how it works

You mean the source code? It's linked in the subversion repository in my first response. Go into Netbeans and then Team>Subversion>Checkout> then use that URL along with your firstforge account info.

And then the javadocs and source code for the robot side of smartdashboard are in zip files in the sunspot plugins folder in C:\Users\[username]

otherguy
19-11-2012, 22:23
There is a brief guide to getting everything up and running here:
http://team2168.org/index.php/resources/programming/223-using-smartdashboard

It is meant to be a supplement to the WPI documentation (to answer some of the questions I still had after reading it).

This was for the 2012 season. There will be some changes made for the 2013 season.