Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   One Joystick Control (http://www.chiefdelphi.com/forums/showthread.php?t=25962)

KWalsh 24-02-2004 15:52

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

Re: One Joystick Control
 
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

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);


KWalsh 24-02-2004 16:01

Re: One Joystick Control
 
I actually just saw that too, thanks anyway guys, Im an idiot, thats why ill be a computer network specialist and not a programmer!

ChrisA 24-02-2004 17:53

Re: One Joystick Control
 
Quote:

Originally Posted by KWalsh
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.


All times are GMT -5. The time now is 20:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi