Go to Post The spirit of FIRST lives in all of them[us]. Knowledge is power and the unknown is scarey but in the end the spirit of FIRST will endure. - LSevcik [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-03-2011, 12:31
ATH1RSTYM00SE's Avatar
ATH1RSTYM00SE ATH1RSTYM00SE is offline
Stephen Fastow
AKA: Stephen Fastow
FRC #5254
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2009
Location: River Vale
Posts: 27
ATH1RSTYM00SE is on a distinguished road
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
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2011, 19:52
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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.
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2011, 09:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: flatten image for Dashboard

Quote:
Originally Posted by kamocat View Post
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.
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-03-2011, 11:16
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: flatten image for Dashboard

That's a good idea. Thanks.
__________________
-- Marshal Horn
Reply With Quote
Reply


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 20:42.

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