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.