Chief Delphi

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

SuperMario 19-01-2013 12:30

SmartDashboard image
 
In smart dashboard there is an image that you can add but I can't find a way to tell what image the view is reading. I am trying to show what our final vision after we have processed the image from the camera can anyone help?

SuperMario 19-01-2013 15:29

Re: SmartDashboard image
 
Am I not being clear or does no one know? I want to know how to use the SmartDashboard image control.

Dinoyan 19-01-2013 18:59

Re: SmartDashboard image
 
1) Locate the FRC DS Data Storage.ini file on your PC. On Windows 7 this file should be located in C:\Users\Public\Documents\FRC and on Windows XP it should be in C:\Documents and Settings\All Users\Shared Documents\FRC). Double click on the file to open it in Notepad.
2) Locate the line beginning with DashboardCmdLine and modify it to point to the installed SmartDashboard (note that the SmartDashboard is installed to Program Files on both 32 and 64 bit machines, not Program Files (x86)!). Note the double quotes and double slashes used. The Driver Station should now launch the Smart Dashboard automatically.
3) To add a camera image to the SmartDashboard, click View >> Add >> Camera. The camera IP address will default to 10.XX.YY.11 where XXYY is the 4 digit version of the configured team number. If you need to change this IP, make sure the Dashboard is set to Editable (also in the View menu), then right click on the Camera widget and select Properties.

Ginto8 19-01-2013 20:17

Re: SmartDashboard image
 
The image widget simply displays a static image loaded from a file. If you want to display the final product from image processing and you're extending a WPICameraWidgetExtension, either draw on top of the WPIImage provided as a parameter or return a new WPIImage (if you return, make sure you store a handle to it somewhere else, or SmartDashboard will crash without any indication -- this caused me a lot of grief).

SuperMario 19-01-2013 21:20

Re: SmartDashboard image
 
How would I go about creating a widget? This is our teams first year using smart dashboard and we are pretty lost.

Arhowk 19-01-2013 21:50

Re: SmartDashboard image
 
Quote:

Originally Posted by SuperMario (Post 1218845)
How would I go about creating a widget? This is our teams first year using smart dashboard and we are pretty lost.

view->add

F22Rapture 19-01-2013 23:51

Re: SmartDashboard image
 
Quote:

Originally Posted by Arhowk (Post 1218861)
view->add

I think by creating, he means making one from scratch.

You likely won't need to (smartdashboard comes with widgets for pretty much every common use), but some documentation on that can be found here:

http://firstforge.wpi.edu/sf/wiki/do...iki/Extensions


All times are GMT -5. The time now is 09:50.

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