View Single Post
  #2   Spotlight this post!  
Unread 14-02-2004, 15:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.