![]() |
Get Array From SmartDashboard
I'm trying to get an array of information about the vision targets to send from the SmartDashboard to the cRIO. I absolutely can't figure out how to do this - the documentation seems much too sparse.
I know that when using LabVIEW we could just use a "SD Get Numeric Array" or something like that. Where's the equivalent function in C++ (or how do I work around it for myself?) |
Re: Get Array From SmartDashboard
Quick question... are you trying to write code that runs in a SmartDashboard custom widget that creates the array of values and sends them to the robot program?
|
Re: Get Array From SmartDashboard
Here is some documentation that shows how to retrieve values in an array on the robot that were generated by RoboRealm for doing vision operations.
http://wpilib.screenstepslive.com/s/...with-roborealm and here is some documentation that shows how you might send values from a Java client program running on the desktop. http://wpilib.screenstepslive.com/s/...client-pc-side This desktop example doesn't use arrays, but from the previous example, it might give you enough information to make it work. Hope this helps. |
Re: Get Array From SmartDashboard
Thanks for the advice. Since I'm using C++ (which makes arrays a giant headache) I actually ended up using VBScript in RoboRealm to save the array data I wanted into single variables for sending to the robot. Seems to be working fine!
|
| All times are GMT -5. The time now is 12:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi