Go to Post IRI seeks to invite the very best robots to play the FIRST game, achieving the highest level of play, while keeping in place the FIRST atmosphere. - Nathan Streeter [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-04-2010, 11:40 PM
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Help with dashboard packing...

Alright. So I modified the dashboard and removed everything from it except the camera image and the robot IP (which was needed for the image to show). Then I added a single boolean indicator, and put this in my code:

Code:
...
Dashboard *dash;
...
void SendDashboardData()
{
  dash = &DriverStation::getInstance()->GetHighPriorityDashboardPacker();
  dash->AddBoolean(true);
  dash->Finalize();
}
And I call SendDashboardData() on each iteration inside OperatorControl. However, when I try to run this, it doesn't work, and sometimes causes all sorts of problems by freezing up the driver station.

What's the proper way to do this? I've looked at the DashboardDataFormat.cpp example but it seems to be written for the default dashboard with all the clusters on it.

Also, what's the difference between the high and low priority packers? Can they be used interchangeably?
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide

Last edited by Al3+ : 02-04-2010 at 11:42 PM.
Reply With Quote
 


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
Dashboard Help C++ Windriver ranc Programming 0 01-15-2010 03:26 PM
Monitering C++ Code With A LabVEIW Dashboard Happyisgood C/C++ 6 07-14-2009 05:23 PM
Help with connecting default dashboard project mminutto NI LabVIEW 2 01-30-2009 03:26 PM
Packing for FL archiver 2001 4 06-24-2002 01:58 AM


All times are GMT -5. The time now is 10:38 AM.

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