Go to Post "By three ways we may learn wisdom: first is by reflection, which is noblest; second by imitation, which is easiest; and third by experience , which is the bitterest." - bEdhEd [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 19-02-2012, 22:54
dwmcc dwmcc is offline
Registered User
FRC #2192 (YAK Attack)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Newport, Oregon
Posts: 14
dwmcc is an unknown quantity at this point
Exclamation Rectangular Target Processing Configuration & Migration

Hello,
We go to test the Rectangular Target Processing code by running it locally, and can calibrate the camera and code to recognize the reflective goal marker, but when we stop the code, our calibrations are lost. How do we save the camera calibrations - and do we do it before or after we import the Rectangular Target Processing project to our cRIO project?

Also, to verify, what are the exact instructions for importing the Rectangular target processing code to our cRIO robot project? Do we go to File>Save As>Duplicate Hierarchy from the Rectangular Target Robot Main.vi or from the Vision Processing.vi?

Thanks so much!
dwmcc
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 23:18
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: Rectangular Target Processing Configuration & Migration

Front panel controls have default values that will be used when you Build the project. When you have changed a control and you want the vi to remember the new value, you can set that value as the new default. Right-click on the control and choose Data Operations>Make Current Value Default from the popup menu. Do that for every control value you want to change.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 23:41
dwmcc dwmcc is offline
Registered User
FRC #2192 (YAK Attack)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Newport, Oregon
Posts: 14
dwmcc is an unknown quantity at this point
Re: Rectangular Target Processing Configuration & Migration

Thanks so much! Another question - I've imported the Rectangular Vision VIs into our cRIO project, and they are accessible and I've set the defaults using the method you specified. I do have three questions, though.

1. What do I need to do now to use the information from the Rectangular Vision (aka distance, etc) elsewhere in my project?

2. Should it auto deploy to the cRIO when I run the code? Do I have to make any other changes in order for it to work on the cRIO?

3. How do I show the video output from the Rectangular vision on the driver station video screen? What do I have to do to implement this?

Thanks so much again!
dwmcc
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2012, 07:57
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: Rectangular Target Processing Configuration & Migration

Quote:
1. What do I need to do now to use the information from the Rectangular Vision (aka distance, etc) elsewhere in my project?

2. Should it auto deploy to the cRIO when I run the code? Do I have to make any other changes in order for it to work on the cRIO?

3. How do I show the video output from the Rectangular vision on the driver station video screen? What do I have to do to implement this?
1. I'd say that is very robot dependent. If you read the target info global, you can use it to either aim or drive the robot during autonomous or teleop.

2. Read through the directions, but basically, you go to the bottom of the project, to the Build Specifications, and you Build, then you Set to Run as Startup.

3. The dashboard can easily pull the image back to the computer independently. If you wish to annotate the image, use a bit of the code from the Rectangular example in your Dashboard Project.

Greg McKaskle
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 08:44.

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