Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   where do we connect our motors for navigate.c (http://www.chiefdelphi.com/forums/showthread.php?t=25284)

thelastride 14-02-2004 14:11

where do we connect our motors for navigate.c
 
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

Re: where do we connect our motors for navigate.c
 
Quote:

Originally Posted by thelastride
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

Re: where do we connect our motors for navigate.c
 
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

Re: where do we connect our motors for navigate.c
 
Quote:

Originally Posted by thelastride
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

Re: where do we connect our motors for navigate.c
 
Quote:

Originally Posted by Mark McLeod
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

Re: where do we connect our motors for navigate.c
 
Quote:

Originally Posted by magical hands
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.


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

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