|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: flatten image for Dashboard
I can exactly see your code cause im on a school sanctioned laptop but what i believe you need to do is in your teleop vi whatever you want to send to the dashboard flatten it to a string and use the block set user data high. Then go to your dashboard project and find where the user dat high comes out. There should be a disabled block around an unflatten from string block. remove the disabled block and attach whatever kind of indicator you want. If you want to add more then one thing to the dashboard You have to flatten everything in teleop, and bundle it. in the dashboard project you need to unbundle the unflatten from string, set the data type to bundle and specify what kind of value you will be passing by attaching things to the bundle Then you can attach indicators to the unbundle. Hope this helps and is clear considering i did it entirely off of memory
![]() |
|
#2
|
||||
|
||||
|
Re: flatten image for Dashboard
That is a thorough description of how to send the camera image using the Dashboard High Priority data.
Unfortunately, that's not what I'm asking. The "send image 2 PC" VI called in the "Open Camera" VI sends the camera image, still compressed, to the Driver Station IP address on TCP port 1180. This works with the default dashboard. I see advantage in using the default dashboard. What I plan to do is modify the "send image 2 PC" so that I can send modified images (showing the target as a green rectangle) when I'm processing to find the target, and send the normal image when I'm not. In order for the Driver Station to receive these modified images as it normally does, they need to be encoded the same way. THAT is what I'm having trouble with. |
|
#3
|
|||||
|
|||||
|
Re: flatten image for Dashboard
Such a modification would be a large change to how it does what it does, and would greatly increase the amount of processing required on the robot. The typical advice is to send the target coordinates in the dashboard data and let the Dashboard program overlay the rectangle on the received image.
|
|
#4
|
||||
|
||||
|
Re: flatten image for Dashboard
That's a good idea. Thanks.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|