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