|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: heres the code. y this not working
ok guys it wont drive at all... and we are still having troubles with switching between atom mode and navagate
|
|
#2
|
|||||
|
|||||
|
Re: heres the code. y this not working
Quote:
So navigate() will probably do nothing for you and the code based on the RC digital inputs will drive around for the full 15 seconds of autonomous. |
|
#3
|
|||||
|
|||||
|
Re: heres the code. y this not working
Quote:
It also looks like you've mixed the pwm's you're using for your motors. In navigate you use: Code:
#define left_drive pwm14 #define right_drive pwm15 So it would seem you'd actually get pwm13 & 14 from User_Autonomous_Code() (rc_dig_in02 wins all the time by the way) and pwm 15 from navigate(). [edit] I can't seem to find the navigate.c file in your posting. Did you modify it at all? There are several modifications you should have made. It won't even begin without at least one important change. Last edited by Mark McLeod : 30-03-2004 at 18:00. |
|
#4
|
||||
|
||||
|
Re: heres the code. y this not working
my friend (crashzero) downloaded it form some wehrer on the delphi site
dont know wehre tho we did make some changes but it was only going zerk when we had the changes |
|
#5
|
||||
|
||||
|
Re: heres the code. y this not working
What part(s) did you change? We need to know details to be able to help much.
![]() |
|
#6
|
||||
|
||||
|
Re: heres the code. y this not working
ill have to find that out later
|
|
#7
|
||||
|
||||
|
the only real change that was made was for it to follow a line and that was made in the user rutines fast.c file. we did not really change anything else. But the entire code is posted above (i can't for the life of me figure out y omega posted everything and didn't zip it but anyway) I hope someone can help us cuz the compition starts tommorow.
![]() |
|
#8
|
|||||
|
|||||
|
Re: heres the code. y this not working
Quote:
http://www.chiefdelphi.com/forums/showthread.php?t=27353 Your code effectively ignores your line sensor on rc_dig_in01 and only attempts to drive using the sensor on rc_dig_in02. It doesn't tell you the correct direction to turn to reacquire the line. Last edited by Mark McLeod : 31-03-2004 at 10:19. |
|
#9
|
||||
|
||||
|
Re: heres the code. y this not working
that link doesn't work!
|
|
#10
|
|||||
|
|||||
|
Re: heres the code. y this not working
Quote:
The code is towards the bottom. |
|
#11
|
||||
|
||||
|
Re: heres the code. y this not working
thanks!!
|
|
#12
|
||||
|
||||
|
Re: heres the code. y this not working
ya uh we need more help then that
thz anymore |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| Speed limiting code from last year in C? | Josh Siegel | Programming | 6 | 01-04-2004 22:27 |
| Interrupt timer, executing code asap? | SeanCassidy | Programming | 10 | 07-03-2004 01:47 |
| Inserting Naviagation code into Default code? | actorindp | Programming | 3 | 28-01-2004 18:12 |
| Does your team use the Default code. | Jeff McCune | General Forum | 2 | 09-01-2003 14:46 |