Go to Post I was not looking at this as a backdoor to asking Brandon to do it (when I have impossible/unreasonable tasks I want done, I ask him straight out ;-) - Joe Johnson [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 17-02-2004, 17:29
alan koch alan koch is offline
Registered User
#1104
 
Join Date: Jan 2004
Location: Axtell, KS
Posts: 3
alan koch is an unknown quantity at this point
navigate and default code newbie question

If we use the default code to run our robot, how do we incorporate navigate to run the ir sensors in autonomous mode?

If you can make it simple, I would appreciate it. I'm just a fabricator who got elected to program the bot.
  #2   Spotlight this post!  
Unread 17-02-2004, 18:27
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: navigate and default code newbie question

well, most of the code is contained in tracker.c and navigate.c - there shouldn't be too many modifications.

first, navigate uses pwms 3 and 4, whereas the default code uses 1 and 2 - you'll need to reconcile this.

second, the call to navigate should go in User_Autonomous_Code.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #3   Spotlight this post!  
Unread 17-02-2004, 22:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,856
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: navigate and default code newbie question

Quote:
Originally Posted by alan koch
If we use the default code to run our robot, how do we incorporate navigate to run the ir sensors in autonomous mode?

If you can make it simple, I would appreciate it. I'm just a fabricator who got elected to program the bot.
It was talked about here http://www.chiefdelphi.com/forums/showthread.php?t=216607.
In addition to those instructions you'll also need the navigate.c and navigate.h files, and you'll need to add a call to navigate() to the User_Autonomous_Code() routine in the user_routines_fast.c file.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
navigate code AlphaOmega870 Programming 2 02-02-2004 18:54
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12


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

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