New Events can be added to scripts distributed with Oi4FSv2 date 2022-02-06
Posted: Sun Feb 06, 2022 8:57 am
The following Events are implemented in all Oi4FS v2.1 airplane drivers:
EVENT_PARKING_BRAKE, "PARKING_BRAKES");
EVENT_GEAR, "GEAR_TOGGLE");
EVENT_FLAPS_DN, "FLAPS_INCR");
EVENT_FLAPS_UP, "FLAPS_DECR");
EVENT_SPOILERS_ARM_TOGGLE, "SPOILERS_ARM_TOGGLE");
EVENT_SPOILERS_TOGGLE, "SPOILERS_TOGGLE");
If a user of Oi4FS has free hardware buttons on an Opencockpits hardware module, these buttons can be interfaced to any of the new EVENTS.
Do as follows to implement any or all of these EVENTs to an airplane script:
1. Open SIOC.exe
2. Load airplane script(i.e. OiMS320v1.4.ssi)
3. Click Edit Script in SIOC's window
4. Go to the bottom of the script and add an EVENT 5.
Var 2853 is SPOILER_ARM_TOGGLE
Var 2854 is SPOILER_TOGGLE
Var 2855 is PARKING_BRAKES
Var 2856 is GEAR
Var 2857 is FLAPS_DECR
Var 2858 is FLAPS_INCR
In the example here a new EVENT is linked as a Static Var to device 32, input 34
6. Save the modified script
EVENT_PARKING_BRAKE, "PARKING_BRAKES");
EVENT_GEAR, "GEAR_TOGGLE");
EVENT_FLAPS_DN, "FLAPS_INCR");
EVENT_FLAPS_UP, "FLAPS_DECR");
EVENT_SPOILERS_ARM_TOGGLE, "SPOILERS_ARM_TOGGLE");
EVENT_SPOILERS_TOGGLE, "SPOILERS_TOGGLE");
If a user of Oi4FS has free hardware buttons on an Opencockpits hardware module, these buttons can be interfaced to any of the new EVENTS.
Do as follows to implement any or all of these EVENTs to an airplane script:
1. Open SIOC.exe
2. Load airplane script(i.e. OiMS320v1.4.ssi)
3. Click Edit Script in SIOC's window
4. Go to the bottom of the script and add an EVENT 5.
Var 2853 is SPOILER_ARM_TOGGLE
Var 2854 is SPOILER_TOGGLE
Var 2855 is PARKING_BRAKES
Var 2856 is GEAR
Var 2857 is FLAPS_DECR
Var 2858 is FLAPS_INCR
In the example here a new EVENT is linked as a Static Var to device 32, input 34
6. Save the modified script