Go to Post This should go without saying, but for some reason it always needs saying. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Control System
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
  #13   Spotlight this post!  
Unread 17-02-2011, 07:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Can we transmit any data from a custom dashboard TO the robot using UDP ?

There is a tutorial on ni.com/frc that describes the steps to put the camera on the switch and how to change the dashboard to view that camera. It doesn't discuss doing the image processing on the laptop, but since LV code is highly portable, you can drag or copy/paste your code into the dashboard to feed from that camera, and then all you have to do is communicate back to the robot.

Doing the communications is much like doing the dashboard in reverse, but I'd suggest TCP instead of UDP, and it will only take about three icons on the laptop and three on the robot. You may benefit from looking at some TCP examples. Or look at the top row of TCP icons in the Connectivity/Protocols/TCP palette. One machine Opens the connections, the other listens. One machine writes and the other reads. Both close. The things you transfer need to be strings. The way that the dashboard does this is use the flatten to string and unflatten from string nodes.

Ask more questions if you are stuck.
Greg McKaskle
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


All times are GMT -5. The time now is 07:11.

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