PDA

View Full Version : Cuttoff switches via fsuipc ans Button



hercules
04-08-2007, 03:33 PM
Hello all and a nice easter to you,

i have a kittle question, because i need help.

I use the opencockpits Joystiock card for my throttle. All wolrs fine, but
i have problems to get the cutoff switches running.
Since i have only buttons ans no switches i have to go through fsuipc to speak to pmsystems. I choose "Offset Dword Tooglebits" with the Offset 561A Bit1 to control the cutoff. I use normal on/off switches (no pushbuttons) The problem is that pmsystems thinks its a pushbutton that i use.

How can i assign a yoystickbutton the Offset for curtoff, so that cutoff switches in pmsystems goes to on when i change the hardware switch to 1 and goes to off when change the hw switch to off?

Now pmsystems change the status of the cuttof alwyas when i change the hardware switch.....and so its possible that i use on ans pmsystems close the cuttof switch.

Hope you will understand me....and sould help me

Thomas

PeterH
04-09-2007, 03:23 AM
Hi Thomas,

the problem is that you defined a toggle type of switch characteristics. It should be a setbits command only as you use a ON / OFF switch. Togglebit makes sense with pushbuttons only.

When your fuel switch is set to ON it should set the bit to "1" and when itīs OFF it should switch the bit back to "0". (pse check the logic as I canīt tell by heart, it could well be the other way round) The toggle will only every second time switch it to ON as it looks to the ON command for toggling.

Important is that you remove the Toggle. That should do the trick.

Best rgds

Peter

hercules
04-09-2007, 07:32 AM
Hi Peter,

thanks for the answer! You are right, because o have to choose setbit and clrbit and it works fine now.

Nice day

Thomas