View Full Version : Controls on dashboard
siggy2xc
22-02-2012, 19:46
I can create indicators on the dashboard but I would also like to be able to put some controls on as well. How would I go about doing this?
zaphodp.jensen
23-02-2012, 09:06
Use a UDP port to communicate data back to the robot. Currently, we have offboarded our vision processing to the driver's station, and have a couple of customizable controls on the dashboard.
The hardest thing is trying to encode your data into strings, because UDP Ports only accept data as a string.
Give me two hours and I will post some example code.
demons858
23-02-2012, 13:31
so what happened to the two hours I think this is what im looking for too
zaphodp.jensen
23-02-2012, 15:09
School came up. I am working on the example code right now.
demons858
23-02-2012, 15:22
Thnats understandible school comes first
zaphodp.jensen
23-02-2012, 15:38
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.
plnyyanks
23-02-2012, 17:03
I have some example code attached to this post (http://www.chiefdelphi.com/forums/showthread.php?p=1074328#post1074328). Take a look, and I'll gladly answer any questions that might arise.
demons858
23-02-2012, 19:14
Thanks a ton
siggy2xc
24-02-2012, 00:28
Thanks a ton guys, I'll be trying this out at the next meeting!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.