Go to Post For me Gracious Professionalism is about helping other teams make their ideas work. We do everything we can to help other teams program, or lend them parts from our pit. On the field we play to win. - Alpha Beta [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #2   Spotlight this post!  
Unread 27-01-2012, 10:00
dkearle's Avatar
dkearle dkearle is offline
Dianne
FRC #1280 (Ragin' C-Biscuits)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: San Ramon, CA
Posts: 14
dkearle is an unknown quantity at this point
Re: Data sent from the SmartDashboard to the cRio

Quote:
Originally Posted by Hjelstrom View Post
My question is, what C++ API can we use to read those values on the cRio side? I was expecting something like SmartDashboard::Get... But I don't see anything like that.
I'm not sure if this will be helpful since we are not specifically getting data from the NetworkTable (yet), but we are using SmartDashboard::GetData() in an attempt to get the PID control constants from the SmartDashboard using the SendablePIDController object and corresponding SmartDashboard widget. To use GetData() we did have to downcast the return from SmartDashboard::GetData() from the base class SmartDashboardData to the subclass SendablePIDController. We used dynamic_class < SendablePIDController * > to downcast the returned object.

We are testing this to confirm it works as expected, but ran into a separate problem of disabling our robot when we hit [ENTER] after typing the new value we wanted for the P constant on the SmartDashboard. We'd love to know how to enter data into the SmartDashboard widgets without actually hitting the [ENTER] key on the driver station!
 


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


All times are GMT -5. The time now is 23:24.

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