View Single Post
  #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.