Results 1 to 4 of 4
-
02-18-2011, 05:32 PM #1
- Join Date
- Jul 2006
- Location
- Kansas
- Posts
- 149
using multiple offsets with the USBOutputs card for a takeoff effect.
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,
JustinHome of the world's first South American DC-8 jetliner.
Home of the Blue Angel F-4 Phantom simulator.
-
02-18-2011, 05:54 PM #2
Re: using multiple offsets with the USBOutputs card for a takeoff effect.
Code:Var 0005 name Eng2, Link FSUIPC_IN, Offset $092E, Length 2 // (eng2 offset) lowspeed Afterburner Effect { CALL &Control } Var 0006 name ldgGear, Link FSUIPC_IN, Offset $0BEC, Length 4 // (nose gear offset) lowspeed Afterburner Effect { CALL &Control } Var 0007, name Eng1, Link FSUIPC_IN, Offset $0896, Length 2 // (eng1 offset) lowspeed Afterburner Effect { CALL &Control } Var 0008, name Control, Link SUBRUTINE { C0 = &Eng1 >= 15001 C1 = &Eng2 >= 15001 IF C0 AND C1 { IF &LdgGear = 16383 { &burner_on = 1 } ELSE { &burner_on = 0 } } } Var 0009, name burner_on, Link IOCARD_OUT, Output 10 // Low speed afterburner effect - motor 22
-
02-18-2011, 08:41 PM #3
- Join Date
- Jul 2006
- Location
- Kansas
- Posts
- 149
Re: using multiple offsets with the USBOutputs card for a takeoff effect.
Thank you edo17982.
Ive been using SIOC for one week and am now learning subrutinesThis will also enable me to make some changes to other parts of the script I wrote.
One more question, Would it be possible to replace the landing gear offset with the true airspeed offset? It would be nice to have my var 0006 controlled by an airspeed of 0 to 300 knots rather than by the landing gear position. If this is possible with the USBOutputs card I need help to write this script as well, i dont understand how to use the airspeed offsets.
Regards,
Justin
Home of the world's first South American DC-8 jetliner.
Home of the Blue Angel F-4 Phantom simulator.
-
02-18-2011, 09:18 PM #4
Re: using multiple offsets with the USBOutputs card for a takeoff effect.
You can do whatever you want just need to tell exactly what behavior you want to be triggered...
Similar Threads
-
Learn from my mistake with USBOutputs card
By peterkwu in forum OpenCockpits General DiscussionReplies: 2Last Post: 02-13-2010, 06:01 PM -
Test USBOutputs
By peterkwu in forum OpenCockpits General DiscussionReplies: 3Last Post: 03-01-2009, 04:20 PM -
Multiple video card question
By XOrionFE in forum Computer Hardware SetupReplies: 10Last Post: 02-05-2009, 10:48 AM -
SIOC.INI for 737NG (MCP,USBKeys, USBOutputs etc)
By BoeingNG in forum OpenCockpits General DiscussionReplies: 0Last Post: 07-12-2008, 08:17 AM -
Multiple Offsets per input??
By imported_MattO in forum FS2Phidget UsersReplies: 2Last Post: 12-22-2004, 08:38 PM