Go to Post I've always suspected that one could find glimpses of wisdom, setting priorities, and responsibility - and ways to balance them, in the contents of a coffee cup. - JaneYoung [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 18-02-2010, 23:55
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Question No angle?

ok we have our program working but there is one small problem their is no angle to target and so it turns until it cant see the target then lines up with the gyro
does anyone know what would cause this i have traced the Zero all the way back to Get IMAQ image and there is a zero all the way down
please help!
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2010, 08:05
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: No angle?

The sample code is always turning according to the gyro angle. If it identifies a target, that defines the angle to target, and the gyro setpoint is that angle. If it does not have a target identified, it assumes zero is your end of the field, and that is a reasonable guess as to where the target is.

If you manually place the target in front of the robot and look at the dashboard, is there a green mark around the target? The green box nearby is also giving the score of the target. Using this, you can test out where the camera code works and where it doesn't. You can decide if you want to tune it to accept smaller targets or ignore them because it is too far to kick anyway, etc.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2010, 08:49
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Question Re: No angle?

When it has a target identified the angle is zero no matter what the score of the target is so it turns until there is no target then lines up with the gyro
yes there is a target shown with a green circle as well as the score and distance
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2010, 21:37
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: No angle?

Probe the vision output, the Target Info I guess it is called, and see if the X value is reasonably accurate. Second thing to do is to look at the values going into Rotate to Target to see how it computes the setpoint.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ramp Angle Survey SkiMasterATV Rules/Strategy 26 20-01-2007 18:40
Grabbing Tilt Angle? crossedheart Programming 7 09-02-2006 03:08
Angle of Launcher ThisGuyRight Rules/Strategy 3 24-01-2006 11:05
Angle from X,Y Astronouth7303 Programming 18 19-04-2004 22:08
Webcast camera angle... Joe Johnson Regional Competitions 13 11-03-2002 16:35


All times are GMT -5. The time now is 04: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