View Full Version : One Joystick Control
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....
Tom Bottiglieri
24-02-2004, 15:59
it is in the default code. just comment out the part above it that states te 2 joystick drive mappings. i think you do that at least.
Mark McLeod
24-02-2004, 16:00
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
pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);
I actually just saw that too, thanks anyway guys, Im an idiot, thats why ill be a computer network specialist and not a programmer!
I actually just saw that too, thanks anyway guys, Im an idiot, thats why ill be a computer network specialist and not a programmer!
Let's not give Computer Networking a bad name here.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.