|
Re: One Joystick Control
Quote:
|
Originally Posted by KWalsh
How might I map all controls for all four of my motors to one joystick control? Can someone help? I think I know how, by changing all instances of p2_y, p3_y, and p4_y to p1_y, but im not sure, can someone help ASAP!? Needs shipped in two days....
|
The following lines in Default_Routine() do that assuming two motors on each side. Just use pwm13/14 for left motors and pwm 15/16 for right motors
Code:
pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 24-02-2004 at 16:10.
|