Go to Post Regardless of the next course of action, getting steamed and angry will benefit nobody. And coming from me, that has to mean something. - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-03-2010, 11:07
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Enabling Default Dashboard in C++

Quote:
Originally Posted by Dave Scheck View Post
So, to dig deeper, lets look at the internals of sendIOPortData(). The first thing it does is get a reference to the low priority dashboard packer. The packer contains the data that will be pushed onto the bit stream. My understanding that the low and high priority packers don't actually have different priorities in the data stream itself. On the receiver side, if the buffer is too large, the low priority packet is truncated.
This is correct. The UDP datagrams sent from the robot are a fixed size (1018 bytes IIRC). After the header, high-priority data is packed, followed by error strings, then by low-priority data. The low-priority data is truncated to the packet size minus eight bytes. The last eight bytes contain four bytes of padding (bytes with a value of 0) and a CRC 32-bit checksum (for error detection).
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2010, 16:22
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Enabling Default Dashboard in C++

I haven't looked into the dashboard stuff in depth but I have a few questions myself. Is the dashboard application customizable? If so, how do I customize it? Is the source code to the dashboard application available? My understanding is that the dashboard application is expecting data packet stream of a certain format. So if I customize the data packer for a different format, I need to change the dashboard application correspondingly. In addition, I would like to customize the dashboard application with different controls, lights, knobs and graphs. I am trying to change dashboard application into a diagnostic tool.
Thanks.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2010, 16:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Enabling Default Dashboard in C++

Quote:
Originally Posted by mikets View Post
I haven't looked into the dashboard stuff in depth but I have a few questions myself. Is the dashboard application customizable? If so, how do I customize it? Is the source code to the dashboard application available?
The default dashboard is a LabVIEW application. You can create a new Dashboard project from the LabVIEW starting screen. You have full control over what it looks like and how it works.

If you don't already use LabVIEW, it will be a bit of a learning curve for you, but it's not particularly difficult.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-03-2010, 16:39
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Enabling Default Dashboard in C++

To build on what Alan said, open up the dashboard example projects on both the Labview and C++ side. The packet that's filled in on the C++ side maps to the pink cluster on the left side of the Labview diagram. As long as you get them to match, you can change them to whatever you want. The next thing to do is to trace the pink line coming out of the data type. It leads to a block that converts the binary stream into data of that type. The output of that block is a cluster that you can use the unbundle by name block to get the data. My suggestion is to find where the unbundles are in the example and replace them with logic controls of your own. Once you get the hang of it and come up with a good way of packing your data, it's pretty easy.
Reply With Quote
Reply


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
Camera picture on Dashboard with default project code? neg0riz0r NI LabVIEW 2 18-02-2010 10:53
Camera working in C++ and default dashboard pafwl C/C++ 0 03-02-2010 22:06
Classmate Question: Default Path Location for Driver Dashboard Ziaholic FRC Control System 4 25-01-2010 13:56
Default Labview Dashboard and Windriver Example Help sircedric4 Programming 7 25-02-2009 01:58
Help with connecting default dashboard project mminutto NI LabVIEW 2 30-01-2009 15:26


All times are GMT -5. The time now is 15:18.

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