Go to Post In Dave We Trust :) - JohnBoucher [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
  #5   Spotlight this post!  
Unread 07-02-2010, 14:02
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
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.
Thanks to everyone's, especially your help, we were able to get data back to the dashboard last week. Now we are trying to get the actual values of the encoders passed back to the user messages box. We have successfully sent words back to this spot, but cannot figure out how to parse the encoder value to get passed back. Any help?
EDIT:
we have the variable that holds the encoder value declared as an INT32 because that is what the .Get() function returns. We are using the DriverStationLCD class to print the value back to the dashboard (actually the user messages section of the driver station)

Also, we tried setting our loop to only run while the encoder value was less than a specific amount (in this case 500) and it just kept running. Has anyone else had this problem and how did you get it fixed? I noticed something a little strange: When our wheels are turning, the 3rd, 4th, 5th, and 6th light under Digital I/O on the dashboard flash. The first 2 are greyed out. I thought this was strange because our encoders are plugged into ports 11, 12, 13, and 14. I am starting to wonder if this is what is causing the issue because of the way I have the encoders declared/initialized

Last edited by Kyledoo : 07-02-2010 at 21:43.
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 03-02-2010 14:41
Optical encoder not returning values MBernstein Motors 11 09-02-2009 22:10
help getting servo values from camera ruddy Programming 12 30-11-2007 23:18
Dashboard View of Pan and Tilt Servo Values JoeXIII'007 Programming 1 02-02-2005 22:34


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

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