Go to Post "As president, I believe that robotics can inspire young people to pursue science and engineering. And I also want to keep an eye on those robots in case they try anything." — Barack Obama - Ted Weisse [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 06-04-2003, 22:31
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
A better autonomous method..

For all ya guys who have had trouble with your autonomous modes this year, and are going to nationals without a decent autonomous mode, I would encourage you to take a look at my teams code in for this year (white papers section).

The autonomous program is a playback/record program.. where the motor data is stored in EEPROM memory and played back during autonomous mode. There is present the capability of storing 6 recorded paths, but you could expand it to do up to probably 16-30 depending on how creative you are :-) The central element to this program is a hardware timer chip (555) of which a schematic is provided.

There are a lot of other elements to the program as well.. but the best part is our autonomous mode. Like I said.. look at the code.. very interesting. Hope this helps someone..

http://www.chiefdelphi.com/forums/pa...le&paperid=189

P.S: anyone needs help with their programming at nats i have a lot of free time over spring break if someone wants to fly me there.. lol!
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net
  #2   Spotlight this post!  
Unread 24-02-2004, 17:08
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: A better autonomous method..

hey, wonderful program, will save tons of time, the scematic diargram is not working, becuase we have old version of WORD. Can you put a JPG version or another image file version and psot it here. That will be very helpful.
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
  #3   Spotlight this post!  
Unread 24-02-2004, 17:12
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: A better autonomous method..

You do realize that the code is obsolete, right?
  #4   Spotlight this post!  
Unread 24-02-2004, 17:18
ngreen ngreen is offline
Registered User
AKA: Nelson Green
FRC #1108 (Panther Robotics)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Paola, KS
Posts: 816
ngreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant futurengreen has a brilliant future
Re: A better autonomous method..

You'd have to convert it to C. But with this years controller a method like this will be so much better. You have more memory so you can record much more points. Last year we did a dead reckon like this and depending on how everything was it could get off and be un-accurate easily. Our programmer showed us this years version of last years code and the robot could consistently hit a spot plus or minus a couple inches. Yeah but this won't work unless you want to put it on your bot from last year for fun. "Turn the autonomous on and get out of the way", fun times. I like this years controller so much better.
  #5   Spotlight this post!  
Unread 24-02-2004, 18:02
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
Re: A better autonomous method..

Yeah, and also.. this year the controller has a built-in timer... however, as they mentioned, the idea behind the my code last year still is a good one. I believe others have done the same thing last year and this year and some of the code is scattered around delphi...
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net
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
Electrical componenets for autonomous navigation maclaren Electrical 10 18-12-2003 02:28
crazy idea for autonomous Mike Ciance Programming 16 24-04-2003 21:50
autonomous location manodrum Programming 4 02-04-2003 08:05
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


All times are GMT -5. The time now is 19: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