Page 11 of 11

Posted: Sun Feb 06, 2011 1:35 am
by Spunkmeyer
IT WORKS!!!!!!

Ok gotta setup and test.. awesome!

Posted: Sun Feb 06, 2011 2:17 am
by Spunkmeyer
Had to modify line 44 as follows, otherwise the throttle was reversed:
PPJ_SetAxis(joyID, 2, (1.25*z-20)) ;

Posted: Sun Feb 06, 2011 5:04 am
by Wanderer
Spunkmeyer wrote:QUOTE (Spunkmeyer @ Feb 5 2011, 08:17 PM) Had to modify line 44 as follows, otherwise the throttle was reversed:
PPJ_SetAxis(joyID, 2, (1.25*z-20)) ;
Hmm, that's odd - I was only testing this in control panel, but it's completely the opposite for me.

If things are swapped, you probabably need to replace the entire throttle section with this

Code: Select all

    if (Z > 95)
    {
        PPJ_SetButton(joyID, 25,1)
        PPJ_SetButton(joyID, 24,0)
        PPJ_SetAxis(joyID, 2,100)
    }
    if  (Z > 90) and (Z <= 95)
    {
        PPJ_SetButton(joyID, 25,0)
        PPJ_SetButton(joyID, 24,0)
        PPJ_SetAxis(joyID, 2, 100)
    }
    if (Z >= 10) and (Z <= 90) 
    {
;~         listvars
;~         pause
        PPJ_SetButton(joyID, 24,0)
        PPJ_SetButton(joyID, 25,0)
        PPJ_SetAxis(joyID, 2, ((1.25)*(Z-10)));this maps Z:10> throt:100,  Z:50 => throt:50, Z:90 => throt:0
    }
    if (Z >=5) and (Z < 10) 
    {
        PPJ_SetButton(joyID, 24,0)
        PPJ_SetButton(joyID, 25,0)
        PPJ_SetAxis(joyID, 2, 0)
    }
    if (Z < 5)
    {
        PPJ_SetButton(joyID, 24,1)
        PPJ_SetButton(joyID, 25,0)
        PPJ_SetAxis(joyID, 2, 0)
    }
It will be tomorrow before I can test whether Alleg expects the opposite of the control panel properties dialog. If somebody can let me know before then, it would save me a couple of steps.

Posted: Sun Feb 06, 2011 5:06 am
by Spunkmeyer
Control panel is fine, the reversal is only in Alleg. I didn't need to change anything else, just mapped the max/min keys to afterburner and back thrust. Works very nicely.. thanks!

Posted: Sat Oct 22, 2011 3:06 pm
by Achtung
Thank you Wanderer and Spunkmeyer,

Finally have my X52 Pro up and running. A few issues, I think buttons 27-29 are allocated to the mode switches on the pro, 29 appears constantly read in the controlpanel and messes with your keymapping until you turn it off. Is there anyway to may the joystick settings more sensitive as it doesn't respond very fast? If not oh well maybe the next release will allow us to go back to the saitek software.

Thanks Again

Achtung