View Single Post
  #5   Spotlight this post!  
Unread 27-01-2005, 16:01
vtrehan's Avatar
vtrehan vtrehan is offline
Mentor - Controls & Programming
AKA: Vivek Trehan
FRC #1241 (Theory6)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Mississauga, ON
Posts: 38
vtrehan is on a distinguished road
Send a message via Yahoo to vtrehan
Re: Victors, Default code, & joystick configuration

You can use a 2-joystick configuration with 2 Victors, one speed controller for each motor on each side. As pointed out before, the programs capability has nothing to do with the number of motors you would need.

You can just you 2 PWM outputs from your RC rather than the 4 in the default code. Assuming you are using 2 motors (1 on each side with 1 victor each) the default code:

pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);

will change to something like this (where you would connect PWM13 to right motor, and PWM 15 to the left motor):
pwm13 = Limit_Mix(2000 + p1_y);
pwm15 = Limit_Mix(2000 + p2_y);

Hope this helps
__________________
2006-GM Industrial Design Award - Greater Toronto Super Regional
2006-Engineering Inspiration Award - Arizona Regional
2006-Regional Finalist - Arizona Regional

2005-Best Defensive Robot - Wonderland Off-Season
2005-Regional Chairman's Winners - Greater Toronto Regional
2005-Regional Champions - Waterloo (Thanks 68 and 1305)
2005-Best Website - Greater Toronto Regional
2005-Team Spirit Award - Waterloo
2005-Entreprenuership Award - Waterloo

2004-Rookie All-Star award - Great Lakes Regional
2004-Rookie Highest Seed - Greater Toronto Regional
2004-Rookie All-Star award - Greater Toronto Regional
2004-Team Spirit award - Greater Toronto Regional
2004-Team Spirit award - National Championship