Olympic260
12-25-2009, 07:10 AM
I am also puting the question here besides OC forum.
For the MIP I have used this code as reference
http://www.opencockpits.com/modules.php?op=modload&name=Forums&file=viewtopic&topic=4843&forum=8
On this the gear Indication LED are defined as, mine is the same minus the Device X and different outputs
Var 4003, Link FSUIPC_IN, Offset $0BEC, Length 4 // Nose Gear Green Offset, 0=up, 16383=dwn
{
IF V4003 = 16383
{
V4004 = 1
V4005 = 0
}
IF V4003 < 16383
{
V4004 = 0
V4005 = 1
}
IF V4003 = 0
{
V4004 = 0
V4005 = 0
}
}
Var 4004, Link IOCARD_OUT, Device 3, Output 42 // Nose Gear Green Led, 0=off, 1=on
Var 4005, Link IOCARD_OUT, Device 3, Output 41 // Nose Gear Red Led, 0=off, 1=on
Var 4006, Link FSUIPC_IN, Offset $0BF4, Length 4 // Left Gear Position Offset, 0=up, 16383=d
{
IF V4006 = 16383
{
V4007 = 1
V4008 = 0
}
IF V4006 < 16383
{
V4007 = 0
V4008 = 1
}
IF V4006 = 0
{
V4007 = 0
V4008 = 0
}
}
Var 4007, Link IOCARD_OUT, Device 3, Output 44 // Left Gear Green Led, 0=off, 1=on
Var 4008, Link IOCARD_OUT, Device 3, Output 43 // Left Gear Red Led, 0=off, 1=on
Var 4009, Link FSUIPC_IN, Offset $0BF0, Length 4 // Right Gear Position Offset, 0=up, 16383=
{
IF V4009 = 16383
{
V4010 = 1
V4011 = 0
}
IF V4009 < 16383
{
V4010 = 0
V4011 = 1
}
IF V4009 = 0
{
V4010 = 0
V4011 = 0
}
}
Var 4010, Link IOCARD_OUT, Device 3, Output 46 // Right Gear Green Led, 0=off, 1=on
Var 4011, Link IOCARD_OUT, Device 3, Output 45 // Right Gear Red Led, 0=off, 1=on
I have aslo use the following for the Light test
Var 2000, Link FSUIPC_OUT, Offset $560D, Length 1 // Light test
Var 2001, Link IOCARD_SW, Input 183
{
V2000 = CHANGEBIT 0 ,V2001
}
The problem is that when I use the light test, all LED that are defined in teh SIOC are turning ON except the 6 Gear LED. The gear LED are working fine, Green when gear down, red in trans.
Any ideas why they don't turn on with the light test?
BR
For the MIP I have used this code as reference
http://www.opencockpits.com/modules.php?op=modload&name=Forums&file=viewtopic&topic=4843&forum=8
On this the gear Indication LED are defined as, mine is the same minus the Device X and different outputs
Var 4003, Link FSUIPC_IN, Offset $0BEC, Length 4 // Nose Gear Green Offset, 0=up, 16383=dwn
{
IF V4003 = 16383
{
V4004 = 1
V4005 = 0
}
IF V4003 < 16383
{
V4004 = 0
V4005 = 1
}
IF V4003 = 0
{
V4004 = 0
V4005 = 0
}
}
Var 4004, Link IOCARD_OUT, Device 3, Output 42 // Nose Gear Green Led, 0=off, 1=on
Var 4005, Link IOCARD_OUT, Device 3, Output 41 // Nose Gear Red Led, 0=off, 1=on
Var 4006, Link FSUIPC_IN, Offset $0BF4, Length 4 // Left Gear Position Offset, 0=up, 16383=d
{
IF V4006 = 16383
{
V4007 = 1
V4008 = 0
}
IF V4006 < 16383
{
V4007 = 0
V4008 = 1
}
IF V4006 = 0
{
V4007 = 0
V4008 = 0
}
}
Var 4007, Link IOCARD_OUT, Device 3, Output 44 // Left Gear Green Led, 0=off, 1=on
Var 4008, Link IOCARD_OUT, Device 3, Output 43 // Left Gear Red Led, 0=off, 1=on
Var 4009, Link FSUIPC_IN, Offset $0BF0, Length 4 // Right Gear Position Offset, 0=up, 16383=
{
IF V4009 = 16383
{
V4010 = 1
V4011 = 0
}
IF V4009 < 16383
{
V4010 = 0
V4011 = 1
}
IF V4009 = 0
{
V4010 = 0
V4011 = 0
}
}
Var 4010, Link IOCARD_OUT, Device 3, Output 46 // Right Gear Green Led, 0=off, 1=on
Var 4011, Link IOCARD_OUT, Device 3, Output 45 // Right Gear Red Led, 0=off, 1=on
I have aslo use the following for the Light test
Var 2000, Link FSUIPC_OUT, Offset $560D, Length 1 // Light test
Var 2001, Link IOCARD_SW, Input 183
{
V2000 = CHANGEBIT 0 ,V2001
}
The problem is that when I use the light test, all LED that are defined in teh SIOC are turning ON except the 6 Gear LED. The gear LED are working fine, Green when gear down, red in trans.
Any ideas why they don't turn on with the light test?
BR