View Single Post
  #4   Spotlight this post!  
Unread 26-02-2013, 22:03
Suitster's Avatar
Suitster Suitster is offline
Registered User
AKA: Ethan Pellittiere
FRC #3951 (SUITS)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Honeoye
Posts: 79
Suitster is on a distinguished road
Re: Cross-hairs and camera image overlay

Quote:
Originally Posted by Patrick Levy View Post
I am trying to do the exact same thing. Please see attached image of my labview code. I put a couple input boxes on the dashboard front panel so that the cross hair could be adjusted while the program runs.

Should this do what I want? I don't have a cRio to test it on, but when I just run the dashboard program my camera image is just a white screen (I was thinking that I'd at least see the yellow line). What kind of coordinates would place a line across the center of the screen?

Thanks!

Pat Levy
While it is certainly possible to embed a line into the actual camera data, and the center would be n/2, where n=number of pixels, it is infinitely easier to create a new dashboard program in the Getting Started Window, and in the front panel for it, create a line with the decorations palette. Place the line over the camera indicator, and change the camera's IP to match the one on your robot.

To make the custom dashboard function as a normal one, build the dashboard, tothe FRC Dashboard folder, probably in C:/Program Files/FRC Dashboard, and overwrite the previous dashboard
__________________
2012 FLR Regional Champs, with 1507 and 191
Reply With Quote