Go to Post Mentoring is HARD. - Akash Rastogi [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 02-02-2004, 18:09
AlphaOmega870 AlphaOmega870 is offline
Registered User
AKA: Mike
#0870 (Southold RICE)
Team Role: Programmer
 
Join Date: Oct 2002
Location: Southold, NY
Posts: 18
AlphaOmega870 is an unknown quantity at this point
Send a message via AIM to AlphaOmega870
navigate code

how exactly does the navigate code work?
We can't figure out where to put the sensors
Do we put one in input 7 and the rest in 1,2,3, and 4 respectively?
Does the sensor in 7 detect the beacon type and 1,2,3, and 4 home in on it?
Thank you in advance.
  #2   Spotlight this post!  
Unread 02-02-2004, 18:26
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: navigate code

Quote:
Originally Posted by AlphaOmega870
how exactly does the navigate code work?
We can't figure out where to put the sensors
Do we put one in input 7 and the rest in 1,2,3, and 4 respectively?
Does the sensor in 7 detect the beacon type and 1,2,3, and 4 home in on it?
Thank you in advance.
The default tracker code is actualy very dumb. First it locates the beacon by scanning. The way it finds it is when both sensors on an "eye" finds it, it assumes its dead ahead. When both "eyes" find it, it assumes its there, turns the robot to face it and drives. If it looses it, it stops then scans again. This is actualy a very poor way to do things. If you have good enough programers, you can make it constantly scan and compare and have a more accurate possition. The only problem is that the default code includes no trig functions and you will have to program your on.
On the subject of possitioning, if you use the default tracker code, you could put them pretty much anywhere, though you may need to do some tweaking of speed and sensitivity. The code has comments that tell you where to plug in the sensors too. Its actualy ports 3-6 by default. Seven is actualy defaulted to a switch that chooses what beacon to home in on. The way it works is both beacons emit a different signal (I cant remember what one is which) and the port 7 toggel chooses what one to follow and what one to ignore.
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
  #3   Spotlight this post!  
Unread 02-02-2004, 18:54
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Re: navigate code

I've written a whitepaper describing steps to troubleshoot your IR system. The second page has a listing of what is plugged into where in what code. http://www.chiefdelphi.com/forums/pa...le&paperid=263

You should also read Mike Walker's Intro to Programming whitepaper for some hints and tricks: http://www.chiefdelphi.com/forums/pa...le&paperid=253
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
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
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12
Placement of Navigate () Ian W. Programming 12 20-01-2004 18:41
InfraRed autonomous code ... mtrawls Programming 1 11-01-2004 00:25
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46


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

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