Go to Post In my opinion, the hardest part of the competition is not that actual manufacture of the robot, but the design process. It is the enginners that go through the design process all the time that will have the edge in this competition, not the best machinist. - Wetzel [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 01-03-2004, 19:04
CharlieWilken CharlieWilken is offline
Registered User
#0634 (Robowolves)
 
Join Date: Jan 2002
Location: Van Nuys, CA
Posts: 46
CharlieWilken is an unknown quantity at this point
autonomous IR Navigation

I was wondering if someone who understands C could explain in a couple of paragraphs what Kevin's Navigation program does with regards to the robots behavior.

1. How does the robot initally move forward by dead reckoning?
2. When does the robot begin to turn and how far does it go.
2 and 1/2 what ports and pins are being employed.
3. When does the robot stop.
4. Where does the program assume the sensors are located
5. Does the program end at some point and where could one put
further instructions. l

Another words can someone give me a detailed description of what Kevin's autonomous program does and how it works.

Thanks in advance
  #2   Spotlight this post!  
Unread 02-03-2004, 00:20
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: autonomous IR Navigation

Quote:
Originally Posted by CharlieWilken
I was wondering if someone who understands C could explain in a couple of paragraphs what Kevin's Navigation program does with regards to the robots behavior.

1. How does the robot initally move forward by dead reckoning?
2. When does the robot begin to turn and how far does it go.
2 and 1/2 what ports and pins are being employed.
3. When does the robot stop.
4. Where does the program assume the sensors are located
5. Does the program end at some point and where could one put
further instructions. l

Another words can someone give me a detailed description of what Kevin's autonomous program does and how it works.

Thanks in advance
Charlie,

Most of these questions are answered in the FAQ.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 02-03-2004, 10:22
CharlieWilken CharlieWilken is offline
Registered User
#0634 (Robowolves)
 
Join Date: Jan 2002
Location: Van Nuys, CA
Posts: 46
CharlieWilken is an unknown quantity at this point
Re: autonomous IR Navigation

I have read the FAQs and i have learned a lot of troubleshooting techniques. I have read the annotations on main.c but then realized I have no idea how all the other sub programs fit in. I do understand what height to put the sensors and how to block out reflections but I don't know whether to put the sensors on the front middle or back. I cant find anything on what makes the robot move forward turn or stop in the FAQs

How about this question:
What makes the robot move forward, turn and stop.

Our team doesn't know c language and would like to have a synchronous explanation of what the program does so we can try and make it work.

Thanks again
  #4   Spotlight this post!  
Unread 02-03-2004, 10:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,789
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: autonomous IR Navigation

The default navigate code:

- Waits for joystick button to be pushed
- Drives straight away from the back wall
- Locks the IR sensors centered facing forwards
- Turns the robot until the IR sensor locks onto the beacon
- Starts tracking with the IR sensor servos
- Drives the robot towards the beacon
- Stops robot when the IR sensors servos are at a particular angle.

These directives all occur in the navigate.c file. You can add your own code at the end where it says:
Code:
case AT_TARGET:
To run properly under autonomous you will have to at least modify the software in user_routines_fast.c (move the call to navigate(); up to User_Autonomous_Mode). The angle the sensor servos are at will depend on your robot and IR sensor mounting. Look in navigate.h at
Code:
#define LEFT_GOAL 135
#define RIGHT_GOAL 120
127 should be straight ahead, 120 is off to the side a little bit, 135 is of to the same side somewhat more. A reflection of how far apart the IR sensor servos are.
There are other parameters in navigate.h that you'll need to tweak to match your robot.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-03-2004 at 10:45.
  #5   Spotlight this post!  
Unread 02-03-2004, 11:59
CharlieWilken CharlieWilken is offline
Registered User
#0634 (Robowolves)
 
Join Date: Jan 2002
Location: Van Nuys, CA
Posts: 46
CharlieWilken is an unknown quantity at this point
Re: autonomous IR Navigation

Thanks so much .... This is exactly what we needed. We have a student who can take this information and move forwared. 1000 thanks for your gracious help!!!
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
A better autonomous method.. randomperson Programming 4 24-02-2004 18:02
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 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 15:54.

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