Go to Post I've had parents tell me I'm a great role model for their daughters, because I was a female leader. It's a great feeling to hear something like that. - Liz Smith [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: How accurately can you score three points autonomously?
We could not hit the broad fluorescent green side of a barn! (Goal 0/10 times) 3 9.68%
If you give it a good kit first we could score a few. (Goal 2/10 times) 1 3.23%
We can score half of the time. (Goal 5/10 times) 3 9.68%
Our system is highly accurate. (Goal 8/10 times) 14 45.16%
Anything less than perfection is not allowed! (Goal 10/10 times) 10 32.26%
Voters: 31. You may not vote on this poll

Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2006, 19:42
scitobor 617's Avatar
scitobor 617 scitobor 617 is offline
More nerd than you can handle!
AKA: Alan Meekins
FRC #0617 (HSHS 617 "DUKE")
Team Role: Programmer
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Richmond, VA
Posts: 153
scitobor 617 will become famous soon enoughscitobor 617 will become famous soon enough
Send a message via AIM to scitobor 617
Weapon Accuracy?

It's getting close to ship date and I'm sure that some very lucky programmers out there have already had some time to test out automated firing systems. I won't get to test until at least Wednesday and at the moment I have not even written a line of code for shooting(its a long story), yes I am getting a little nervous. I've been wondering what level of accuracy teams have been able to achieve? Also, what major problems have my fellow programmers been running into when approaching this interesting physics exercise?
__________________
Beta testers needed!
http://www.nullagent.no-ip.com

Your kidding, there are other operating systems besides Linux?!
  #2   Spotlight this post!  
Unread 11-02-2006, 20:04
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: Weapon Accuracy?

Well, the old revision of the shooter was quite accurate, but we've made a serious revision, and I have no idea now...
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #3   Spotlight this post!  
Unread 11-02-2006, 20:54
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Weapon Accuracy?

Ours the camera sits seperate form the cannon so I have to triangulate!!

This is a programming nightmare!!Nope I don't even have nightmares this bad.
On paper everything works well but on the real thing all he$$ breaks loose.

Edit: And its not even done yet!!!!!!!!!!!!!!!I have no clue if the crap I am going to write now is going to work!
  #4   Spotlight this post!  
Unread 11-02-2006, 21:58
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: Weapon Accuracy?

I am in the same boat as you fella's. No robot is done yet, or not far enough along for me to test the code. In theory it should all work, but theory is not good enough.

Our shooter is very accurate though, we just need to find a way to get it up to speed faster so we can shoot ten balls in 7 seconds during autonomous (accounting 3 for speeding up the shooter).
__________________
My Blog!
  #5   Spotlight this post!  
Unread 11-02-2006, 22:02
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,082
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: Weapon Accuracy?

Flywheel + flywheel speed feedback loop + backspin + camera = near perfection
  #6   Spotlight this post!  
Unread 11-02-2006, 22:36
CronosPrime1 CronosPrime1 is offline
Registered User
FRC #0321
 
Join Date: Jan 2006
Location: Hyperspace
Posts: 53
CronosPrime1 is an unknown quantity at this point
Re: Weapon Accuracy?

0/10, seeing how my team doesn't have a shooter.
__________________
  #7   Spotlight this post!  
Unread 11-02-2006, 22:45
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,313
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Weapon Accuracy?

Code is very close to done, but the robot to test it on is not done. Logically everything works... how well it works depends on the time I'll actually get to test it...
  #8   Spotlight this post!  
Unread 11-02-2006, 23:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Weapon Accuracy?

Quote:
Originally Posted by scitobor 617
...what major problems have my fellow programmers been running into when approaching this interesting physics exercise?
The programming team beat our collective heads against the compiler most of last week before finding the spot where the PID code was stubbornly using 8-bit arithmetic and overflowing. Today, while finally tuning the parameters, I found myself fighting the Victor deadband and the asymmetric response of the window motor.

The biggest hurdle to overcome is the simple fact that the robot isn't finished yet, so programming it is largely an exercise in faith that it's being wired the way we expect it to be.
  #9   Spotlight this post!  
Unread 12-02-2006, 09:50
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Weapon Accuracy?

Right now I have some code written and a few ideas. But its hard to know how well it will work without anything to test it on.
  #10   Spotlight this post!  
Unread 12-02-2006, 10:09
Oumonkey's Avatar
Oumonkey Oumonkey is offline
Master of the If statement
AKA: Josh Tyus
FRC #1555 (Pulse)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Monon, IN
Posts: 50
Oumonkey has a spectacular aura aboutOumonkey has a spectacular aura about
Re: Weapon Accuracy?

I'm in the same boats as most of you, our robot isn't finished either. I hoping by mid this week. But I wanted to mount the camera on the shooter so in auto mode it actually moves the shooter instead of that little pan/tilt thingy it came with. But I know that servos and motors act differently so can anyone point me to something that could help, I have looked a little but I haven't had time to concentrate on that to much as of yet, and the little I have looked at didn't help me to much. I'm still doing some research on it though.
Thanks.
__________________
  #11   Spotlight this post!  
Unread 12-02-2006, 14:03
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Weapon Accuracy?

you will need a sensor(preferably a pot) to monitor the position of the cannon and then you have to set it up to be basicly controlled like a servo but with smoother motion because you don't want to damage the mechanisms. Basicly lower the power to the motor as the error gets smaller

error = where you want to be - where you are
  #12   Spotlight this post!  
Unread 12-02-2006, 17:54
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 487
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Weapon Accuracy?

Quote:
Originally Posted by 6600gt
you will need a sensor(preferably a pot) to monitor the position of the cannon and then you have to set it up to be basicly controlled like a servo but with smoother motion because you don't want to damage the mechanisms. Basicly lower the power to the motor as the error gets smaller

error = where you want to be - where you are
Straight proportional control is by no means the only possibility.

Last edited by SoftwareBug2.0 : 12-02-2006 at 17:55. Reason: Spelling
  #13   Spotlight this post!  
Unread 12-02-2006, 18:20
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Weapon Accuracy?

Quote:
Originally Posted by SoftwareBug2.0
Straight proportional control is by no means the only possibility.
Well the power i give to motor is error/3 (based on a 0-254 error scale) + the minimum power required to get the thing moving. It slows it down as the error becomes less so it can settle. Its straight but I think it works. Its one part of the PID control? Still don't understand the other 2.

And ofcourse you can do more complex things...

Last edited by 6600gt : 12-02-2006 at 19:13.
  #14   Spotlight this post!  
Unread 12-02-2006, 20:05
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 487
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Weapon Accuracy?

Quote:
Originally Posted by 6600gt
Well the power i give to motor is error/3 (based on a 0-254 error scale) + the minimum power required to get the thing moving. It slows it down as the error becomes less so it can settle. Its straight but I think it works. Its one part of the PID control? Still don't understand the other 2.

And ofcourse you can do more complex things...
That sounds like a good way to do it. I sorta skipped over where you were qualifying with "basically".

Now I'm go to respond to your last message in a way that isn't quite literally there, but seems to be implied: it seems like you imply that other methods must be more complex.

There are actually simpler ways that you could potentially control the aim. For example, my team's manual aim mode works with only left, right, and off for the turning, and up, down, and off for the tilting. You could have your camera do the same thing.

And yes, proportional is the P in PID. The other are integral and differential, see a number of other threads for more information about them.
  #15   Spotlight this post!  
Unread 12-02-2006, 22:08
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Weapon Accuracy?

Quote:
Originally Posted by SoftwareBug2.0
That sounds like a good way to do it. I sorta skipped over where you were qualifying with "basically".

Now I'm go to respond to your last message in a way that isn't quite literally there, but seems to be implied: it seems like you imply that other methods must be more complex.

There are actually simpler ways that you could potentially control the aim. For example, my team's manual aim mode works with only left, right, and off for the turning, and up, down, and off for the tilting. You could have your camera do the same thing.

And yes, proportional is the P in PID. The other are integral and differential, see a number of other threads for more information about them.
I have tried to understand the other ones a little bit but need to spend more time on it. I also don't have the time to impliment them.

Well your setup should work fine, but once you start having great error that constantly changes direction and your turret has to go back and fourth, it could create very jerky movements. Depending on how robust your system is, this could damage the motors and gears.
You might be smooth on the controls but the camera won't be(depends on the programming).

You are right they don't have to be complex.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
servo output accuracy NextPerception Programming 9 07-02-2006 11:23
pic: Team 1388: Secret Weapon Mike Hendricks Robot Showcase 22 09-03-2005 18:49
pic: Secret Weapon CD47-Bot Robot Showcase 5 26-02-2004 22:37
Secret Weapon archiver 2001 28 23-06-2002 22:30
Accuracy of drawings for Inventor Award Jan Olligs Inventor 2 18-02-2002 10:21


All times are GMT -5. The time now is 01:19.

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