View Single Post
  #4   Spotlight this post!  
Unread 30-03-2004, 17:47
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,825
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: heres the code. y this not working

Quote:
Originally Posted by omega
ok guys it wont drive at all... and we are still having troubles with switching between atom mode and navagate
Navigate() is auto_mode.


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
While in User_Autonomous_Code() you use pwm13 & pwm14.

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-03-2004 at 18:00.