Go to Post The name of the game will be "Conjunction Junction". The robots will be tasked with hooking up words and phrases and clauses. You're welcome. - Travis Hoffman [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 29-03-2013, 01:44
bprobotics bprobotics is offline
Registered User
FRC #3288
 
Join Date: Jan 2013
Location: Big Piney
Posts: 10
bprobotics is an unknown quantity at this point
Re: Vision Tracking Help

Alan, I switched to doing the vision processing on the dashboard. In order to get just one image, I set it so that the Loop Iteration > 1, sends true to the loop condition which is stop if true. If the iteration < 1, it sends false to the loop condition. Unless I am mistaken, this should only analyze one image every time the loop runs, correct? I am also using smart dashboard variables to send the distance from Target Info[0] to the cRIO when I press button 1 on the joystick. I think I need a SD variable to send this to the dashboard also but it didn't appear to be working. For whatever reason, the cRIO CPU usage spikes when I press that button.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-03-2013, 15:25
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: Vision Tracking Help

Quote:
Originally Posted by bprobotics View Post
Alan, I switched to doing the vision processing on the dashboard. In order to get just one image, I set it so that the Loop Iteration > 1, sends true to the loop condition which is stop if true. If the iteration < 1, it sends false to the loop condition. Unless I am mistaken, this should only analyze one image every time the loop runs, correct?
You're really trying hard to do things in a way that the provided code isn't set up to work. That loop is intended to start when the program begins and continue to run until the program is shut down. If you stop it, what's going to start it up again? I urge you modify the example code as little as possible.

Since you've abandoned the easily-controlled cRIO code, the small modification I would suggest is to surround the actual vision processing functions with a Case block that 1) runs when a global boolean is set True, and 2) sets that boolean False when it runs.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-03-2013, 17:44
bprobotics bprobotics is offline
Registered User
FRC #3288
 
Join Date: Jan 2013
Location: Big Piney
Posts: 10
bprobotics is an unknown quantity at this point
Re: Vision Tracking Help

Well, I was able to get it running on the dashboard, but i really only need the distance occasionally. Would my PID code still work if the distance is constantly changing? How would you go about implementing the code if it were for your robot?
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 12:13.

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