Go to Post "Mother nature does not give partial credit" -Woodie Flowers, Kickoff 2003 - TerryDolan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2006, 13:05
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Leading (and lagging) the Target

The strategy sub-team on my team is really adamant about being able to accurately hit the goal while the robot is moving at non-trivial speeds, either toward (and away from) the target or side-to-side, or both. The first case is fairly easy, due to the flatness of the trajectory of our balls, but the last two require you to know your velocity relative to the target in order to lead (or actually lag) it.

I was planning on using the gyro + accelerometers to get this information, and while the gyro is working great, it is difficult to get anything meaningful from the accelerometers. Is KW's code coming to rescue me? Are others making strong headway (is see mixed response here on CD)? Or am I going in the wrong direction?

What are people doing to hit the target while moving without using accelerometers? Or is the dual-axis accelerometer the way to go?

Thanks in advance,
Robinson
__________________
'... who are you, then?'
'I am part of that power which eternally
wills evil and eternally works good.'
Goethe, Faust
  #2   Spotlight this post!  
Unread 13-02-2006, 13:14
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Leading (and lagging) the Target

the simplist way to get speed is to do time trials with your robot at different PWM outputs to the motors. Time the robot as it runs across two lines about 10 feet apart, and calculate the velocity for each PWM setting

this will give you a rough idea how fast the robot is moving. Of course the real speed will change based on battery charge level, tire wear, drive-train break-in....

but its better than nothing.
  #3   Spotlight this post!  
Unread 13-02-2006, 13:26
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,071
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Leading (and lagging) the Target

One thing that you can try is to use feedforward control from the camera to help you aim.

In other words, if you see the target moving 5 pixels left every cycle, you can use that information as an indicator of your velocity relative to the goal.
  #4   Spotlight this post!  
Unread 13-02-2006, 14:22
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,631
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Leading (and lagging) the Target

This is a very difficult problem.

The solution to this problem was a state secret during WW2. Essentially you are trying to solve the gunsite problem. WW2 era anti-aircraft gunsite had mechanical computers inside that would point the bullets not where the planes are, but where they would be in when the bullets arrived.

I don't want to discourage you, but it is a tough nut to crack.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #5   Spotlight this post!  
Unread 14-02-2006, 20:34
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Leading (and lagging) the Target

Quote:
Originally Posted by Joe Johnson
The solution to this problem was a state secret during WW2. Essentially you are trying to solve the gunsite problem.
Any references? I could find nothing on this either on Google or Wikipedia.
__________________
'... who are you, then?'
'I am part of that power which eternally
wills evil and eternally works good.'
Goethe, Faust
Closed Thread


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 11:09.

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