Go to Post I'm pretty sure Andrew Baker and Andy Baker are the same person. Then again, Andy may just be holding out on us. - Amanda Morrison [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

 
View Poll Results: Are you shooting on the run?
Yes, we are very confident in our ability to score while moving 16 20.78%
We are attempting it but it is not as reliable as we would like 23 29.87%
No, we shoot only while stationary 29 37.66%
We are not shooting at all 9 11.69%
Voters: 77. You may not vote on this poll

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Spotlight this post!  
Unread 15-02-2006, 13:15
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: Shooting on the run

Quote:
Originally Posted by Donut
To know speed, you must have an accleremotor or an encoder, as I said. Robot turning requires gyro, angle of rotator in relation to the robot requires a POT, and the tracking stuff requires the camera. I hope all teams will have the camera at least semi-working, but using all the other data is alot to ask for.

You must know your speed in your current direction, relate this to how fast you are moving to/from the goal, and change your shooter speed/rotation to account for it. Is your shooter or rotator going to be able to move/change speed fast enough to keep up? By the time it gets in position, your robot might be well past the point that required those parameters. Also, what happens if your robot is not moving at a constant speed? You must now make a part of your code to account for acceleration in addition to velocity, even more of a pain. As an added bonus, a strong hit from another robot always has the possibility of throwing off your data (you may think parallel to the goal is 5 degrees past the original angle you thought of), compromising the whole system.

All of these calculations and compensations are possible. I don't think there is enough time in 6 weeks to do them all and test them properly though. I say less than 5 teams are able to do this well, and at least 4 of them will be from teams that used the camera very effectively in autonomous last year.
Knowing your current vector is important, but setting up encoders or the GTS is not hard. You could also consider having a lookup table of PWM values to approx.. speed (of course, this would not be very accurate, but it might work with some tweaking). You could also see how many pixels the target moves each frame and use this in combination with your distance from the target to deduce an approx. speed. A tachometer could be used as an analog input to get speed as well.

You need to also know the current direction, but the gyro is so easy to setup this couldn't be a problem. Acceleration is, in my mind, irrelevant, because the ball does not retain the acceleration of the robot once it has left the turret, just the velocity of the robot at the point it left. And being bumped by a robot won't occur continuously, nevertheless it will be a factor that is impossible to account for.

[If you need help with either encoders, gyro, or the GTS there are plenty of help posts and Kevin's code is well documented and clear]

However, your point about never being able to move the turret accurately and fast enough to have it in the position to fire after doing the calculations is my worst fire. I can't test any of this stuff because our robot is ages away from being ready. In my mind, its the the most difficult problem to overcome. Of course, any one who has mode can feel free to give us some hints.

Good Luck,
Robinson
__________________
'... who are you, then?'
'I am part of that power which eternally
wills evil and eternally works good.'
Goethe, Faust
 


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
Precision of Shooting Nitroxextreme Robot Showcase 0 10-02-2006 07:39
Why do teams voluntarily do FIRST without adult technical mentors? Andy Baker General Forum 127 05-12-2005 08:08
Assisance with Win98 mgreenley IT / Communications 19 08-10-2004 22:37
Basic Run Error BBFIRSTCHICK Programming 10 02-04-2003 22:43


All times are GMT -5. The time now is 02:10.

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