Go to Post Welcome to FIRST. You've never seen anything like this. - Aignam [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
  #4   Spotlight this post!  
Unread 02-01-2010, 01:21 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Getting Encoder Values in the Dashboard

Quote:
Originally Posted by Kyledoo View Post
Thank you, that should help a little bit, but how do you pack the data you receive from a function for the dashboard? Do I have to call another class (like DashboardDataFormat) or is it just another function?

For Example

double dblEncoder1Value;
dblEncoder1Value = encoder1.Get();
then would I do something like:
PackAndSend(dblEncoder1Value);

Forgive me if the questions I have asked sound obvious, I just really can't figure this out.
The DashboardDataFormat class in the example is just a way to organize the code. The actual library interface is the Dashboard class which you access via the DriverStation class using GetHighPriorityDashboardPacker() or GetLowPriorityDashboardPacker(). Follow the example you see in the code inside the DashboardDataFormat class.
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
Can't see any values on dashboard kevinb999 C/C++ 11 02-03-2010 02:41 PM
Optical encoder not returning values MBernstein Motors 11 02-09-2009 10:10 PM
help getting servo values from camera ruddy Programming 12 11-30-2007 11:18 PM
Dashboard View of Pan and Tilt Servo Values JoeXIII'007 Programming 1 02-02-2005 10:34 PM


All times are GMT -5. The time now is 10:41 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