Go to Post .. if no one gets ahead no one gets left behind. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-16-2014, 04:19 PM
swaglord2000's Avatar
swaglord2000 swaglord2000 is offline
Registered User
FRC #4073
 
Join Date: Jan 2014
Location: Myrtle Beach
Posts: 13
swaglord2000 is an unknown quantity at this point
Drawing within the camera portion of driver station

I would like to draw a line on the driver station window camera, so that when the line lines up with the bottom of the goal we know that we can shoot.
  #2   Spotlight this post!  
Unread 02-16-2014, 04:25 PM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Drawing within the camera portion of driver station

The video is actually displayed in the dashboard program, and it can be customized in several ways. The default dashboard is built in LabVIEW, so if you want it to be the same, except for having a line over it, you can create a dashboard template from the getting started window, then place an object such as a decoration over the video. You can also choose to use an overlay function to draw on the image in the loop.

Greg McKaskle
  #3   Spotlight this post!  
Unread 02-16-2014, 04:44 PM
swaglord2000's Avatar
swaglord2000 swaglord2000 is offline
Registered User
FRC #4073
 
Join Date: Jan 2014
Location: Myrtle Beach
Posts: 13
swaglord2000 is an unknown quantity at this point
Re: Drawing within the camera portion of driver station

Could you show any pictures? I am very new at programming and no one else knows how.
  #4   Spotlight this post!  
Unread 02-16-2014, 07:35 PM
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,112
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: Drawing within the camera portion of driver station

If you're not comfortable modifying the Dashboard program, you can try the low-tech approach the TechnoKats drive team has used for the past couple of years. They affix a piece of thin Lexan over the screen and draw on it with a Sharpie.
  #5   Spotlight this post!  
Unread 02-16-2014, 07:49 PM
BurkeHalderman's Avatar
BurkeHalderman BurkeHalderman is offline
Casual Robot Observer
no team
Team Role: College Student
 
Join Date: Nov 2011
Rookie Year: 2010
Location: Oxford, OH
Posts: 95
BurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant futureBurkeHalderman has a brilliant future
Re: Drawing within the camera portion of driver station

Quote:
Originally Posted by Alan Anderson View Post
If you're not comfortable modifying the Dashboard program, you can try the low-tech approach the TechnoKats drive team has used for the past couple of years. They affix a piece of thin Lexan over the screen and draw on it with a Sharpie.
^This. It's so easy and requires no effort at all. In the past we've used scotch tape to make the cross-hairs on the screen. This is also super easy and works great.
__________________
[2010-2014]: FRC 3266 Robots-R-Us: Founder and Alumni
2010 (5-5-1): Buckeye Regional; Driver
2011 (4-5-0): Buckeye Regional; CORI; CAGE Match; Drivetrain/Manipulator Operator
2012 (7-13-0): Buckeye Regional; Queen City Regional; CAGE Match; BPRC; Drivetrain Operator
2013 (25-15-1): Queen City Regional; Buckeye Regional; Crossroads Regional; CORI; Ohio State Champs; CAGE Match; BPRC; Drivetrain Operator
2014 (21-10-0): Crossroads Regional; Queen City Regional; Designer; Mechanical/Design Mentor

Founding an FRC team as an 8th grader sure wasn't easy, but it was totally worth it.

Get in touch with me:
Personal Facebook

I believe every human has a finite number of heartbeats. I don’t intend to waste any of mine. – Neil Armstrong
  #6   Spotlight this post!  
Unread 02-16-2014, 08:22 PM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Drawing within the camera portion of driver station

Nothing wrong with low-tech, but if you want to learn another way -- the attached photo shows the vision loop modified to draw a horizontal line from 0,100 to 320,100 in red.

You will then need to build the dashboard and choose to have yours run instead of the default. There is a tutorial on the Getting Started dialog about making a custom dashboard.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	From Clipboard.png
Views:	88
Size:	332.8 KB
ID:	16267  
  #7   Spotlight this post!  
Unread 02-20-2014, 08:07 PM
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Drawing within the camera portion of driver station

Quote:
Originally Posted by Alan Anderson View Post
If you're not comfortable modifying the Dashboard program, you can try the low-tech approach the TechnoKats drive team has used for the past couple of years. They affix a piece of thin Lexan over the screen and draw on it with a Sharpie.
Man has a point. Why make it difficult on yourself when there's easier methods out there?
  #8   Spotlight this post!  
Unread 02-22-2014, 11:42 AM
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Drawing within the camera portion of driver station

If you're using one of the Axis cameras, it's possible to upload a mask to the camera itself. Just create your overlay as a .bmp from Microsoft Paint and upload it to the camera. You'll find menus on the camera for managing the overlay. We've used this several times in the past for putting a vertical, center line on the driver's display without needed to program the Labview dashboard code.

HTH,

Mike
Closed Thread


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 03:43 AM.

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