Go to Post On a lighter note, I know my team's happy that in our Rookie Year we built the sexiest robot in the world and got the Imagery Award at Nationals :D - Snappel328 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-01-2005, 16:58
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Dashboard for .NET

I have an untested dashboard application that allows you to create your own views of the dashboard data and dynamically load them into a GUI. The application loads a set of controls that inherit from a shared base class into tabs on a form. The host application does all of the serial IO and packet decoding so you only need to worry about processing the packets as they come it.

The current version has five sample views, including one that displays the information from the CMUCam data struct. Currently it shows the centroid and the bounding box only. In order to view the data within the dashboard application you will need to use the user_bytes to pass back the information as follows:

Code:
User_Byte1 = cam.x;
User_Byte2 = cam.y;
User_Byte3 = cam.x1;
User_Byte4 = cam.y1;
User_Byte5 = cam.x2;
User_Byte6 = cam.y2;
If you would like to give it a shot you can download the program HERE. Once I know its all working correctly I'll post instructions for creating your own views.

If you really want to hack at it, all you do is create a new user control that inherits from Team116.Dashboard.UI.DashboardView found in DashboardTypeLib.dll. There are four virtual methods defined in that class that you can override, one to process each of the four data packet types. Your new control is then compiled into an assembly and copied to the folder with dashboard.exe. Edit DashboardTabs.xml to add a reference to your new control and you're all set.

The CommBase.dll assembly is from a sample in MSDN Magazine, Ref: "Serial Comm: Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications" John Hind, MSDN Magazine, Oct 2002. V1.3 February 2004.

Last edited by seanwitte : 22-01-2005 at 09:46.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Battery Voltages in Dashboard Ian W. Programming 10 07-03-2004 16:50
Weird Output from Dashboard Port Ian W. Programming 9 06-03-2004 21:33
New dashboard packet spec Ameya Programming 2 08-01-2004 19:59
Dashboard Decoder Release Version 1.0 Now Available! archiver 2000 1 23-06-2002 22:50
New Innovation FIRST control system and the dashboard archiver 2000 0 23-06-2002 22:15


All times are GMT -5. The time now is 05:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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