Go to Post Just a note, there are 2,534 teams registered and competing in FRC this year. That means that there are 2,533 teams being run in a manner entirely different than your own. - Jay Trzaskos [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 04-02-2010, 16:54
glitch glitch is offline
Registered User
FRC #1596
 
Join Date: Jan 2009
Location: sault ste marie
Posts: 2
glitch is an unknown quantity at this point
labview delay help

hey, im relatively new and im using the classmate so pardon my grammar. im using labview to program our teams robot (1596!) and i need help with our camera tracking. ive recently learnt how to track the vision target but i need help because our camera (mounted on two servos) overshoots the target, is their any way we can adjust how fast the servo moves so that we dont overshoot the target.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2010, 18:32
hamosad1657 hamosad1657 is offline
Registered User
FRC #1657
 
Join Date: Jan 2010
Rookie Year: 2005
Location: Israel
Posts: 23
hamosad1657 is an unknown quantity at this point
Re: labview delay help

Hello 1596,
For adjust the servo moves, try to use the PID calculation that will smoothing the servo motion, or just lower the tracking rate.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2010, 23:17
bls0620's Avatar
bls0620 bls0620 is offline
Registered User
FRC #0368 (Team Kika Mana)
Team Role: College Student
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Honolulu, HI
Posts: 29
bls0620 will become famous soon enoughbls0620 will become famous soon enough
Re: labview delay help

Quote:
Originally Posted by glitch View Post
hey, im relatively new and im using the classmate so pardon my grammar. im using labview to program our teams robot (1596!) and i need help with our camera tracking. ive recently learnt how to track the vision target but i need help because our camera (mounted on two servos) overshoots the target, is their any way we can adjust how fast the servo moves so that we dont overshoot the target.
If you are running the program off from any laptops instead of running the program as start-up, they WILL be some delays.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2010, 09:37
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: labview delay help

Keep in mind that while your typical Teleop loops are running at 50 Hz, the default code's image processing can maybe squeeze out 10 new target updates per second ... and as low as 2 per second when the camera is set to its highest resolution. (I'm referring to the default code here)

My team used the front panel from the FindCircles VI to observe almost 500msec when the camera is set to Hi-Res. Around 250 msec at medium res. And around 150 msec for low res. You can improve these times by changing the search window etc., but it's important to understand the timing differences of the control system, and the target detection updates.

For the medium-resolution example, if you control the servos from within the Teleop VI, then you'll have approximately 12-13 "drive" cycles for each target update (250 / 20). So if you are adding an offset angle to the current angle, you'll probably overshoot the target unless the delta-angle is very very small.

Our first attempts would overshoot greatly ... we reduced the delta "bump" angle to as low as 0.55 degrees per "correction" and finally got it to lock. (smaller values would result in the camera not even moving)

Our next improvement to our tracker will probably involve taking the control commands out of the teleop vi and placing them with the other parallel tasks, and also waiting for the target variable to update before acting again.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview help pedro696 General Forum 14 06-02-2010 19:34
LabView Help Please NumBeast NI LabVIEW 3 19-12-2008 15:11
Delay Help! waiakea2024 Programming 7 21-02-2007 12:41
help: cannot get the picture in the labVIEW program .. (was: need help!! quickly!) liad LabView and Data Acquisition 8 18-01-2006 12:20
NEED HELP with Delay loop for compressor relay switch archiver 2001 10 24-06-2002 02:11


All times are GMT -5. The time now is 22:35.

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