Go to Post It's wrong to scuttle someone else's boat because you don't think it's seaworthy. You probably don't know that what you were seeing will be called a submarine. - ThatHat [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 04-10-2006, 21:59
Edourdo's Avatar
Edourdo Edourdo is offline
Registered User
AKA: ED
FRC #1747 (Harrison boiler robotics)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2005
Location: Lafayette,IN
Posts: 5
Edourdo is an unknown quantity at this point
Smile need last years programs

If any one who was able to make there autonomous mode work with there camera I would like to have a copy, and if anyone knows how to help me along with making a difference engine I would be more than happy thank you.
  #2   Spotlight this post!  
Unread 05-10-2006, 00:59
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,511
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: need last years programs

What exactly do you mean? It sounds like you're having more problems aiming than anything.

We consisantly made 4-7 of 8 in autonomous (our shooter was slightly innacurate due to wobbling, but the aim was dead on) by driving to postion, aiming our turret based on the camera with a PID loop. And then waiting until we had the turret in the right position and had more than 1/4 of a second of lock on from the camera. From this we know our turret is in postition, the camera is for sure locked on (not just noise) and we're ready to shoot; then we enable our feeder to shoot.

So, It took all that for one autonomous mode so I'm not sure what part you need help with. Could you be more detailed with what you want, what you have done, what you were results were and your robots capabilities.
  #3   Spotlight this post!  
Unread 05-10-2006, 06:56
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: need last years programs

Code for one robot isnt going to work on another nessisarily. We would have to know more about your design. If you want just the logic i can tell you. But for code you will need to post where you have your motors, PWMs, etc.
  #4   Spotlight this post!  
Unread 05-10-2006, 14:59
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: need last years programs

Even alot of the logic varies based on robot desigs, some teams did pan and tilt, some teams used gyros to correct, some used encoders. Let us know what you are looking to do and what you habve to work with.

As a note, my code is no commented very well and it calls alot of functions rather than writing the whole autonomous code in the area where ifi says to do it. It would be very difficult for you to read through all of our code and understand it.

If you dont know what I mean about calling functions rather than typing out all the code look at this, it is 237's 2005 autonomous mode, they capped the vision tetra(If I remember correctly)

while (autonomous_mode) /* DO NOT CHANGE! */
{
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */

/* Make sure compressor is full. */
Check_Compressor();
printf("Cam tilt: %f", cam.tilt_servo);

/* Get vision tetra and cap it. */
if(Have_Tetra_Flag == 0)
{
Get_Vision_Tetra();
}
else if(All_Done == 0)
{
Cap_Tetra();
}
else
Finish_Auto();

Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
}

turns out all you have to do to cap in auto is to see if you have a tetra, if you dont go get one and pick it up, pretty simple huh (note sarchasm in reference to simplicity) Any way, back to my point our code wont work for you. Besides it is alot more fun for us to help you with an algorithm than to have you copy ours.

James
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
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
Last years versus this years trans. ratios de_ Motors 4 12-01-2006 13:56
Last years computer Justin_302 Control System 3 04-02-2005 20:30
i need specs for motors and pumps in the kit from last years competition plz help SCYTE16 Motors 3 18-11-2004 22:54
Last years bots archiver 2001 13 23-06-2002 22:26


All times are GMT -5. The time now is 20:50.

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