Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Four motor control (http://www.chiefdelphi.com/forums/showthread.php?t=34650)

judson 14-02-2005 19:55

Four motor control
 
Hello all! :D

I am trying to figure out if the default code supports four motor control. I have a pair of CIM motors for each sides of the robot's transmission. I have played around for a bit with things trying to get all four running on the default code. :( So far I can only get two at a time running on PWM 15 and 16. Does anyone have any tips? I cannot even see where in the default code this would be edited.

Thanks. :eek:

Alan Anderson 14-02-2005 20:17

Re: Four motor control
 
Quote:

Originally Posted by judson
I am trying to figure out if the default code supports four motor control...

The easy answer is to use the pwm splitter cables to control two Victors from a single pwm output.

The long answer depends on which version of the default code you're using and whether you want single- or dual-joystick control. Version 2.2 already puts the left and right motor control on a pair of pwm outputs each, using pwm13-16, for the single joystick option.

For default code version 2.4, you'll have to find the spot where it controls the motors, and make it put the control on two pwm outputs. For example, you could replace something like pwm11 = lspeed; pwm12 = rspeed; with pwm9 = pwm11 = lspeed; pwm10 = pwm12 = lspeed; to get individual pwm outputs for each motor.


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

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