Go to Post A FIRST door is always open. - Chris Fultz [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
  #3   Spotlight this post!  
Unread 02-01-2010, 12:16 AM
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Getting Encoder Values in the Dashboard

Quote:
Originally Posted by jhersh View Post
I've sent arbitrary data to the dashboard. Only the type matters, not the source. Encoders will return either an INT32 or a double depending on if you call Get() or GetDistance(). You can send either one by using the correct data type when you pack the dashboard data.
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.
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