|
Re: Modifying Default code
Quote:
|
Originally Posted by great_one411
 How do you modify the Default Code from one joystick to two joysticks 
|
[edit] Forgot the rest of the story. This goes in Default_Routine() in the user_routines.c file. Comment out the 1-Joystick lines:
Code:
//pwm13 = pwm14 = Limit_Mix(2000...
//pwm15 = pwm16 = Limit_Mix(2000...
and add in
Code:
/*------------ 2 Joystick -----------------*/
pwm13 = pwm15 = p1_y;
pwm14 = pwm16 = 254 - p2_y; // Assumes your motors are reversed, just p2_y if not
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 15-02-2004 at 12:46.
|