Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   IR code (http://www.chiefdelphi.com/forums/showthread.php?t=25986)

Gusman1188 24-02-2004 20:45

IR code
 
Ok, so we put the sensors on rc dig in 1, 2, 4, 5 and servos on 1 & 2.
Then the drives on 13 and 15.
Uploaded navigate.zip and..........pwm03 fires at 72 whether auton is enabled or not :ahh: and the servos do not do anything unless you reset and they twitch a little....any help would be appreciated.

deltacoder1020 24-02-2004 21:31

Re: IR code
 
a) navigate.zip is designed just to run, it's not set up to be only running in autonomous mode (you have to do that yourself)

b) if I remember correctly, the IR sensors go on ports 3,4,5, and 6, starting with the left-most and ending with the right-most.

Mark McLeod 24-02-2004 21:36

Re: IR code
 
Quote:

Originally Posted by Gusman1188
Ok, so we put the sensors on rc dig in 1, 2, 4, 5 and servos on 1 & 2.
Then the drives on 13 and 15.
Uploaded navigate.zip and..........pwm03 fires at 72 whether auton is enabled or not :ahh: and the servos do not do anything unless you reset and they twitch a little....any help would be appreciated.

If you are using navigate.c as-is then it's waiting for you to hit one of the joystick buttons (p1 trigger).

Your hook-ups seem to be correct.

It needs to be modified to be used in competition.
It was talked about here [thread]24631 [/thread]
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.

Kevin Watson 24-02-2004 22:58

Re: IR code
 
Quote:

Originally Posted by Gusman1188
Ok, so we put the sensors on rc dig in 1, 2, 4, 5 and servos on 1 & 2.
Then the drives on 13 and 15.
Uploaded navigate.zip and..........pwm03 fires at 72 whether auton is enabled or not :ahh: and the servos do not do anything unless you reset and they twitch a little....any help would be appreciated.

Read the FAQ, Luke (Okay, okay, so I saw Star Wars a few too many times).

-Kevin


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

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