|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Controls on dashboard
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. |
|
#2
|
|||
|
|||
|
Re: Controls on dashboard
so what happened to the two hours I think this is what im looking for too
|
|
#3
|
|||
|
|||
|
Re: Controls on dashboard
School came up. I am working on the example code right now.
|
|
#4
|
|||
|
|||
|
Re: Controls on dashboard
Thnats understandible school comes first
|
|
#5
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
Re: Controls on dashboard
Thanks a ton
|
|
#8
|
|||
|
|||
|
Re: Controls on dashboard
Thanks a ton guys, I'll be trying this out at the next meeting!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|