Go to Post If winners never quit, and quitters never win, does it make sense to quit while you're ahead? - Billfred [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 Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 13-02-2010, 03:52
willsterm willsterm is offline
Registered User
FRC #1257
 
Join Date: Jan 2010
Location: nj
Posts: 4
willsterm is an unknown quantity at this point
Unhappy Can someone explain 2010 Rotate To Target VI

Can someone provide a brief summary of how the Rotate To Target VI is supposed to work – in the context of the out-of-the box Update2 release of the 2010 FRC Framework – in particular in the context of Autonomous Independent mode? It’s error output when substantially small enough will force the Autonomous Independent to exit its while loop .. but I don’t understand why the Rotate To Target VI sets the PID’s setpoint in the fashion that it does. Can any one explain the rationale for this?
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2010, 04:44
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: Can someone explain 2010 Rotate To Target VI

The Rotate to Target subVI is provided with the target info. If there are zero identified targets, the setpoint will be initialized to zero degrees. If the target is found, it will be the absolute gyro position where the target is located.

When not initializing, the code uses the PID to determine the motor outputs and computes the error. When the error term is small enough, the robot is pointing at the setpoint, either zero degrees or the target. It leaves the loop because presumably you would like to kick, push, flail, or some other action. If there is an additional ball, you could then move to it, and execute similar code again, possibly by putting a loop around the code already there.

This is relatively simplistic, doesn't know how to trigger a kick, and assumes that when you are supposed to kick, it is better to kick to your end of the field (zero degrees), than to wait forever.

If you have additional questions about changing it, fire away.
Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2010, 08:51
willsterm willsterm is offline
Registered User
FRC #1257
 
Join Date: Jan 2010
Location: nj
Posts: 4
willsterm is an unknown quantity at this point
Unhappy Re: Can someone explain 2010 Rotate To Target VI

I must be thick.

In autonomous is the first thing .. so presumably the gyro is set to zero (and the judges can re-position the robot as they see fit, so zero may not mean that the robot has a useful reference .. so if when the game starts the target is not in view the robot rotate to the zero angle .. which it currently believes it is in .. so no movement.

The other case is that the robot does see the target, so the setpoint is set the current heading .. which would be zero anyway ... once again the robot has not moved.


What am I missing?

Thx
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2010, 08:59
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: Can someone explain 2010 Rotate To Target VI

To the left of the loop there is a wait of zero, a reading of the global that extracts the number of targets. You may want to do something with this info before entering the loop, say wait for a few seconds or until you see a target, perhaps move forward to touch the ball. All of that seems like good stuff.

The code was written as a sample to demonstrate some of the game elements related to vision. It will not win any matches.

If there is a target visible fifteen degrees away from zero when auto begins, this code will rotate the robot to point at it. If you have questions as to how to get it to do something else, please ask.

Greg McKaskle

Last edited by Greg McKaskle : 13-02-2010 at 09:15. Reason: clarity
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2010, 11:22
willsterm willsterm is offline
Registered User
FRC #1257
 
Join Date: Jan 2010
Location: nj
Posts: 4
willsterm is an unknown quantity at this point
Re: Can someone explain 2010 Rotate To Target VI

Don't need help doing other neat stuff -- we are already doing neat thing in TeleOp mode -- but thanks for the offer.

What we are trying to is understand the underlying details of how and why the rotate to target works.

If we do what you say and put the find the target bit into the initial flattened sequence structure .. Then why do the next bit.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2010, 13:02
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: Can someone explain 2010 Rotate To Target VI

You are welcome, but I meant for autonomous.

The underlying rotate to target VI expects to be called repeatedly at a relatively consistent interval when the robot needs to be rotated to aim at the target. If no target is currently visible, it uses zero for its setpoint. For each call, it reports back with the error between where it is being asked to aim and where it is currently aimed.

Each time the VI is called, it will update the motor PWM settings attempting to pivot the robot so that the target is in the center of the image. If the VI is being called in the loop and something pushes the robot, it will push back to try and get back to the angle. The VI calculates the values for the motors using a PID VI. The PID is tuned for a specific robot very similar to what was demoed at kickoff. The PID can be retuned for other types of robots. If you need assistance doing the tuning, there is a white paper on the NI site that covers this.

I don't understand the last question, so I hope this was more what you are looking for. If not, please ask specific questions.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2010, 11:21
willsterm willsterm is offline
Registered User
FRC #1257
 
Join Date: Jan 2010
Location: nj
Posts: 4
willsterm is an unknown quantity at this point
Thumbs up Re: Can someone explain 2010 Rotate To Target VI

This document has all the answers that we were seeking!!!

'Guide to the FRC 2010 Sample Source'

http://www.usfirst.org/roboticsprogr....aspx?id=10934
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2010, 14:05
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Can someone explain 2010 Rotate To Target VI

Quote:
Originally Posted by willsterm View Post
...
and the judges can re-position the robot as they see fit
...
1) Judges judge awards, referees are the ones in charge of making calls during matches

2)The referees certainly cannot reposition your robot as they see fit. You may be thinking of <G11> but that only comes into play if you try to use an external alignment device to set up your robot (ruler, protractor, etc.)
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
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
You can explain how robotics can help with ocean discovery and sustainability. ebarker General Forum 0 30-09-2009 19:01
Can someone explain this to me? B.Collette Website Design/Showcase 7 19-01-2009 20:03
Can anyone explain to CAD to me? Vashts6583 Inventor 4 16-01-2005 18:17
Help - Can you rotate an .avi file?? Elgin Clock IT / Communications 2 11-02-2004 00:56
Can someone explain this to me... Suneet 3D Animation and Competition 1 21-09-2002 02:36


All times are GMT -5. The time now is 18:54.

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