View Single Post
  #3   Spotlight this post!  
Unread 01-02-2005, 09:00
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
Re: Dashboard for .NET

The previous release worked fine. I tested it originally with the mini-rc but I was able to try it with a 2005 controller pair over the weekend.

You can download the viewer here: http://members.cox.net/seanwitte/dashboardviewer.zip.

Assembly containing a field map control: http://members.cox.net/seanwitte/FieldModel.dll

The Field control has three items of interest:

1) The property RobotImagePath can be set to a custom graphic representing your robot. This is the full windows path to the file. It should be 44x33 pixels for scale. The pixel in the upper left-hand corner will be used as the transparent color. Set this property when you initialize the container.

2) Method DrawRobot(int x, int y, int heading) draws the robot on the field. The heading is in degrees and the origin is the lower left-hand edge.

3) Method ClearField() clears the field image.

I haven't released the source, but it is not needed to create your own views. The word document in the zip file walks you through the process of creating a new Windows Control Library, setting up a view control, and adding the new view to the dashboard viewer application.

Each of the tabs in the application is loaded with a separate control at runtime. You just create a control, override some callback methods to display the dashboard data, and you're all set. I includes a control to show the centroid and bounding box output from the CMUCam, a simple LED, and a sliding bar control.

If it works out for you, please let me know. I would rate the skills required to be intermediate. At least you can find a use for the copy of VS.NET in the KOP.

I forgot to mention that the views included are just samples. You can remove them by commenting them out in the XML config file using <!-- --> tags around the <tab></tab> element you want to remove. Or you can delete them. If you muck up the file, delete it and restart the exe. It will create a fresh copy with the defaults.

Last edited by seanwitte : 01-02-2005 at 12:40. Reason: Added link to field control