PDA

View Full Version : v49.2 Landing Gear Offsets



imported_Suggy
01-06-2018, 02:13 PM
Hello all.

I am pulling my hair out at the moment regarding getting the landing gears to operate.

As I understand it, there are now two offsets for the landing gears at $78ED (81 for up and 82 for down).

I have written a SIOC code but nothing happens. The only way I can get the gears to retract and extend is to use the 'G' key on the keyboard.

My SIOC code is:

Var 5020 Link IOCARD_SW Input 102 Type I // Gear up switch
{
v5030 = CHANGEBIT 81 v5020
}


Var 5021 Link IOCARD_SW Input 103 Type I // Gear down switch
{
v5030 = CHANGEBIT 82 v5021
}


Var 5030 Link FSUIPC_OUT Offset $78ED, Length 1

Is there anything I have done wrong?

Even a normal landing gear SIOC script doesn't work:


Var 5030 Link FSUIPC_OUT Offset $0BE8 Length 2 // Landing Gear


Var 5020, name GD, Link IOCARD_SW Input 102 Type I // GEAR DOWN
{
IF V5020 = 1
{
V5030 = 16383
}
}


Var 5021, name GU, Link IOCARD_SW Input 103 Type I // GEAR UP
{
IF V5021 = 1
{
V5030 = 0
}
}


For information, the Jeehell FMGS server is running on a separate computer to P3D

Any suggestions would be welcome.

Kind regards,
Darren Sugden

jeehell
01-06-2018, 02:56 PM
did you actually install FSUIPC support? on P3D PC or on FMGS Server PC? in the latter case, with widefs running?

imported_Suggy
01-06-2018, 04:40 PM
did you actually install FSUIPC support? on P3D PC or on FMGS Server PC? in the latter case, with widefs running?

Hello.

Yes, FSUIPC support is installed on the FMGS server. Also running on the FMGS server is SIOC along with WideFS. Everything is working fine on that front. If I install the software landing gear panel on the FMGS server I can raise/lower the gear using the mouse on the graphic panel.

Is there something else I should be running on the P3D computer? I have tried running HardwareConnect and wideFMGS on the P3D computer as well but that didn't make any difference (I also selected FSUIPC support when I installed the software).

Using the Offset Byte Setbits option in FSUIPC doesn't work either. I know I have done nothing incorrect there since I use that facility to turn on the Ext Pwr (I use a button on the overhead which is connected to SIOC of which I have created a virtual joystick and used the FSUIPC Offset Byte Setbits with parameter 21(bit 21 in x78ED) to turn on the Ext power). I have replicated that but using parameters 81 (gear up) and 82 (gear down). No joy.


Regards,
Darren

jeehell
01-06-2018, 05:03 PM
Var 5020 Link IOCARD_SW Input 102 Type I // Gear up switch
{
v5030 = 81
}


Var 5021 Link IOCARD_SW Input 103 Type I // Gear down switch
{
v5030 = 82
}


Var 5030 Link FSUIPC_OUT Offset $78ED, Length 1
is better than the changebit method, try that instead

imported_Suggy
01-06-2018, 06:38 PM
is better than the changebit method, try that instead

Thank you so much! The above code works. Two days I spent trying to find a solution :-)

On another note, v49.1 has been the only update were I had to roll back to an earlier version (v49.0) but I am happy to say that v49.2 is working well again (on my sim anyway).

Once again, many thanks, Jean Luc, for your time and effort.

Wishing you a Happy New Year,
Darren Sugden

jeehell
01-06-2018, 06:51 PM
One again, many tahnks, Jean Luc, for your time and effort.

Wishing you a Happy New Year,
Same to you, cheers!