Log in

View Full Version : where do we connect our motors for navigate.c


thelastride
14-02-2004, 14:11
I have a question where do we connect our motors in what Pwm for the code navigate.c can anyone please tell me and our robot is 2 wheel drive. and we are currently using pwm13 and pwm 15. :ahh: :confused: :(

Kevin Watson
14-02-2004, 14:38
I have a question where do we connect our motors in what Pwm for the code navigate.c can anyone please tell me and our robot is 2 wheel drive. and we are currently using pwm13 and pwm 15. :ahh: :confused: :(Isn't it documented in navigate.h?

-Kevin

deltacoder1020
14-02-2004, 20:39
pwms 13 and 15 should work if you are doing one-joystick drive. if you are using two joysticks for control, pwms 1 and 2 are the ones you want.

Mark McLeod
15-02-2004, 13:01
I have a question where do we connect our motors in what Pwm for the code navigate.c can anyone please tell me and our robot is 2 wheel drive. and we are currently using pwm13 and pwm 15. :ahh: :confused: :(
Remember the navigate project doesn't come with a Default_Routine(), so you'll need to add one.
If you've added navigate to your default code then you need to change navigate.h "left_drive" and "right_drive" to match the pwms you are using (pwm13/pwm15).

magical hands
15-02-2004, 15:33
Remember the navigate project doesn't come with a Default_Routine(), so you'll need to add one.
If you've added navigate to your default code then you need to change navigate.h "left_drive" and "right_drive" to match the pwms you are using (pwm13/pwm15).

what do you mean by the above quote i don't get it because we have a 2 wheel drive robot operated by one joysitck and we dowloaded navigate.c in our robot and it doesn't work the computer tells move to centre, turn to right.. don't know but it says something like that but our robot doesn't move although the programm is giving out command do you know why? :ahh: :confused: :(

Mark McLeod
15-02-2004, 15:45
what do you mean by the above quote i don't get it because we have a 2 wheel drive robot operated by one joysitck and we dowloaded navigate.c in our robot and it doesn't work the computer tells move to centre, turn to right.. don't know but it says something like that but our robot doesn't move although the programm is giving out command do you know why? :ahh: :confused: :(
As I recall navigate.c by default expects the motors to be attached to pwm03 and pwm04.
If you are using navigate without any modifications then it waits at the start for someone to push the forefinger button on the joystick before starting.