dc8flightdeck
02-18-2011, 05:32 PM
I want to use three offest to trigger an output with the USBOutputs card. Is this possible?
When engine one and and engine two are at full throttle and if the landing gear is down I want it to trigger an output. If either engine is not in full power or if the landing gear is up I want the output to turn off.
I can currently control the output with one of the three offsets(always the last one that is listed), but not with all three at the same time.
Here is my code where Im only using one of the three offsets since that is the only way I can currently trigger an output. How can I use all three offsets at once to control the output?
Var 0005 name lowspeed2, Link FSUIPC_INOUT, Offset $092E, Length 2 // (eng2 offset) lowspeed Afterburner Effect
Var 0006 name lowspeed3, Link FSUIPC_INOUT, Offset $0BEC, Length 4 // (nose gear offset) lowspeed Afterburner Effect
Var 0007, name Lowspeed1, Link FSUIPC_INOUT, Offset $0896, Length 2 // (eng1 offset) lowspeed Afterburner Effect
{
IF &Lowspeed1 >= 1
{
IF &Lowspeed1 <= 15000
{
&burner_on = 0
}
IF &Lowspeed1 >= 15001
{
IF &Lowspeed1 <= 16484
{
&burner_on = 1
}
}
}
}
Var 0008, name burner_on, Link IOCARD_OUT, Output 10 // Low speed afterburner effect - motor 22
Regards,
Justin
When engine one and and engine two are at full throttle and if the landing gear is down I want it to trigger an output. If either engine is not in full power or if the landing gear is up I want the output to turn off.
I can currently control the output with one of the three offsets(always the last one that is listed), but not with all three at the same time.
Here is my code where Im only using one of the three offsets since that is the only way I can currently trigger an output. How can I use all three offsets at once to control the output?
Var 0005 name lowspeed2, Link FSUIPC_INOUT, Offset $092E, Length 2 // (eng2 offset) lowspeed Afterburner Effect
Var 0006 name lowspeed3, Link FSUIPC_INOUT, Offset $0BEC, Length 4 // (nose gear offset) lowspeed Afterburner Effect
Var 0007, name Lowspeed1, Link FSUIPC_INOUT, Offset $0896, Length 2 // (eng1 offset) lowspeed Afterburner Effect
{
IF &Lowspeed1 >= 1
{
IF &Lowspeed1 <= 15000
{
&burner_on = 0
}
IF &Lowspeed1 >= 15001
{
IF &Lowspeed1 <= 16484
{
&burner_on = 1
}
}
}
}
Var 0008, name burner_on, Link IOCARD_OUT, Output 10 // Low speed afterburner effect - motor 22
Regards,
Justin