Go to Post Speculate away! - IndySam [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 28-01-2014, 14:54
Jackie Farkas Jackie Farkas is offline
Registered User
FRC #0219
 
Join Date: Jan 2014
Location: Washington New Jersey
Posts: 2
Jackie Farkas is an unknown quantity at this point
Vision Processing Loop Slowing Down Project

I'm the head programmer of Team 219 programming in Labview. I have implemented the 2014 target detection code into the robot project and it works flawlessly. However, now the vision processing vi control loop delays all robot functions including drive. I have tested to make sure that it is indeed the vision processing that is causing the delay. Anyone else having this problem? How shall I go about fixing this so that I can keep target detection implemented while not sacrificing normal operation speed?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2014, 14:59
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,519
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Vision Processing Loop Slowing Down Project

Decide when, precisely, you'll need image acquisition turned on. In likelihood, it is only at the beginning of the match for a second or so.

Next, is there a wait statement in your vision loop? If not, by design, it will run as fast as it physically can.

The reality is that real time target acquisition running 100% of the time is not something that can efficiently be done on the cRIO. But you don't need it all the time.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2014, 18:25
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,751
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: Vision Processing Loop Slowing Down Project

Just to build on what Tom said. If you change your camera framerate in Begin, the vision loop will automatically sleep waiting for the next image to arrive. First, I'd measure how long the loop takes for the given resolution. Then invert and set your camera rate.

You will also find that smaller and more coarse images will process faster. What resolution are you using?

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 02:07.

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