![]() |
Modifying Default code
:confused: How do you modify the Default Code from one joystick to two joysticks :confused:
|
Re: Modifying Default code
Quote:
Code:
//pwm13 = pwm14 = Limit_Mix(2000...Code:
/*------------ 2 Joystick -----------------*/ |
Re: Modifying Default code
Basically what he said, just simplified. To map two joysticks, you would do something like this:
Code:
// This code assumes the joystick are on ports 1 and 2 and pwm01 and 02 are the drive motors. |
Re: Modifying Default code
The default code already has two joystick drive on pwm01 and pwm02. You just need to change pwms. No code changes necessary.
|
Re: Modifying Default code
Quote:
IFI dropped the 2-joystick code from later versions. |
Re: Modifying Default code
Quote:
Lines 211 and 212 (in Default_Routine) Code:
pwm01 = p1_y; |
Re: Modifying Default code
Quote:
|
Re: Modifying Default code
Quote:
I believe at one time (maybe EDU code) they had the line: Code:
/*---------- 2 Joystick Drive ----------------------------------------------and that's what I was missing. Thanks! |
| All times are GMT -5. The time now is 04:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi