View Single Post
  #9   Spotlight this post!  
Unread 10-02-2015, 16:35
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: SmartDashboard Extension

Quote:
Originally Posted by mmaunu View Post
When you launch the dashboard from within the Driver Station, the Driver Station uses an ini file to determine which program to run. This ini file is located in the directory:
Code:
    C:\Users\Public\Documents\FRC
(note: the user here is "Public" for all installs)

The name of the ini file is:
Code:
FRC DS Data Storage.ini
Open up the file to edit it and change the line with DashboardCmdLine to:
Code:
DashboardCmdLine = "java -jar "C:\\Users\\mmaunu\\wpilib\\tools\\SmartDashboard.jar""
(note: be sure to change the user name to something appropriate...not mmaunu)

Inside the Driver Station, on the "Setup" tab, leave the dashboard type to "Default". By default, it will look for the command to run in the ini file.

Your extensions should be installed in the following folder:
Code:
C:\Users\mmaunu\SmartDashboard\extensions
(note: change mmaunu again and create the "extensions" folder if there isn't one already)

We create a jar file that contains our extensions and then just save the jar file to the folder above.

Hope this helps.
Interesting. Thanks for that. I have it opening fine now, the only issue is that the Camera widget does not work (and neither does my extension). Any ideas? My extensions folder contains my plugin, WPICameraExtension.jar, and a lib folder.

Inside the lib folder is javacpp.jar, javacv.jar, javacv-windows-x86.jar, and WPIJavaCV.jar.

The timestamps for everything is around 2013 -- could I be using an outdated jar? Can someone upload their WPICameraExtension.jar and others for me? I think this might be the case.

Thanks!
Reply With Quote