|
Re: Changing 1 joystick code to 2 (rookie team)
in the default code, the outputs are mapped to:
pwm01 = p1_y;
pwm02 = p2_y;
pwm03 = p3_y;
pwm04 = p4_y;
pwm05 = p1_x;
pwm06 = p2_x;
pwm07 = p3_x;
pwm08 = p4_x;
pwm09 = p1_wheel;
pwm10 = p2_wheel;
pwm11 = p3_wheel;
pwm12 = p4_wheel;
so you could simply use the Y cables and put the two right motors on pwm01 and the two left motors on pwm02
or edit the code above to put the same signal on two outputs - if you want your right motors on pwm1 and pwm2 and your left motors on 3 and 4, change it to
pwm01 = p1_y;
pwm02 = p1_y;
pwm03 = p2_y;
pwm04 = p2_y;
BTW - this code is in the file user_routines.c - after you edit it you have to pull down the menu and 'make' your code (let it compile)
PS- make a backup copy of your default code somewhere first :^)
Last edited by KenWittlief : 19-02-2004 at 21:13.
|