Go to Post I shouldn't be doing a happy dance or anything, should I? - Qbranch [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2005, 19:55
judson judson is offline
Registered User
#0824
 
Join Date: Jan 2005
Location: Seattle
Posts: 3
judson is an unknown quantity at this point
Four motor control

Hello all!

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.
  #2   Spotlight this post!  
Unread 14-02-2005, 20:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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