View Single Post
  #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