Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   navigate and default code newbie question (http://www.chiefdelphi.com/forums/showthread.php?t=25494)

alan koch 17-02-2004 17:29

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.

deltacoder1020 17-02-2004 18:27

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.

Mark McLeod 17-02-2004 22:25

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.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi