View Single Post
  #6   Spotlight this post!  
Unread 23-02-2012, 15:38
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Controls on dashboard

Ok, here we go. This is a short example that encodes a Decimal Numeric, a Boolean, and a string and sends it over UDP from the dashboard to the Robot, at which point it is decoded and sent out in the exact same data types.

You can re purpose this to send data back to the dashboard by switching the port and IP addresses on the UDP reads and writes.

For a more in depth project, I off boarded our vision processing to our dashboard, and sent the target information back to the robot. I can post this code, although it is significantly more in depth than this code.

If you have any other questions, feel free to either PM me, or post on this thread again.
Attached Thumbnails
Click image for larger version

Name:	UDP String Example.png
Views:	65
Size:	98.2 KB
ID:	12078  
Attached Files
File Type: vi UDP String Example.vi (15.6 KB, 4 views)
Reply With Quote