- Messages
- 1
- Country
Hi,
i would like to send this LVAR (>L:SWS_LIGHTING_Switch_Light_Landing, Enum) to Simconnect which should turn off the Landing Lights of the Simworks Studios Kodiak Quest 100, however even after extensive search i just did not make any progress so far.
When i google for "WASM" or "sending LVAR" i always get Threads about using Mobiflight which i can not do since it doesnt support my Teensyduino Board Hardware which i am using.
I am not a programmer but i put together my own code by lots of trial and error and it went very well so far and am able to send events however i dont think i understand enough WASM and LVARS.
Do i need to manually enter this LVAR "SWS_LIGHTING_Switch_Light_Landing, Enum" into the "events.txt" or "events.user.txt" file in "mobiflight-event-module" which sits in my Community folder or not?
If yes then which format to use exactly?
I tried it like this:
SWS_LIGHTING_Switch_Light_Landing#0 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
SWS_LIGHTING_Switch_Light_Landing#1 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
SWS_LIGHTING_Switch_Light_Landing#2 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
But no success.
The farthest if have come so far was turning on the Landing lights of the Kodiak but regardless which Enum (0 - Off, 1 - Pulse, 2 - On) i use the Lights always just turn on but unable to set it to Pulse or to Off.
Below are two examples of other events which work for me, one is a KVAR for Asobo Default Nav Lights and the next i a HVAR example about pushing an G1000 MFD Button through Mobiflight's WASM.
Now i would really appreciate if someone could explain to me with how to get this LVAR (>L:SWS_LIGHTING_Switch_Light_Landing, Enum) to work or if someone could just show me just the way i show below in the examples.
1 (>K:NAV_LIGHTS_SET)
Turn Nav Lights On / Set Nav Lights to 1 :
static enum EVENT_ID {NAV_LIGHTS_SET,};
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, NAV_LIGHTS_SET, "NAV_LIGHTS_SET");
hr = SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_A, NAV_LIGHTS_SET);
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, NAV_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
(>H:AS1000_MFD_SOFTKEYS_11)
Push G1000 MFD Button 11:
static enum EVENT_ID {MobiFlight_AS1000_MFD_SOFTKEYS_11,};
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, MobiFlight_AS1000_MFD_SOFTKEYS_11, "MobiFlight.AS1000_MFD_SOFTKEYS_11");
hr = SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_A, MobiFlight_AS1000_MFD_SOFTKEYS_11);
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, MobiFlight_AS1000_MFD_SOFTKEYS_11, 0, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
i would like to send this LVAR (>L:SWS_LIGHTING_Switch_Light_Landing, Enum) to Simconnect which should turn off the Landing Lights of the Simworks Studios Kodiak Quest 100, however even after extensive search i just did not make any progress so far.
When i google for "WASM" or "sending LVAR" i always get Threads about using Mobiflight which i can not do since it doesnt support my Teensyduino Board Hardware which i am using.
I am not a programmer but i put together my own code by lots of trial and error and it went very well so far and am able to send events however i dont think i understand enough WASM and LVARS.
Do i need to manually enter this LVAR "SWS_LIGHTING_Switch_Light_Landing, Enum" into the "events.txt" or "events.user.txt" file in "mobiflight-event-module" which sits in my Community folder or not?
If yes then which format to use exactly?
I tried it like this:
SWS_LIGHTING_Switch_Light_Landing#0 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
SWS_LIGHTING_Switch_Light_Landing#1 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
SWS_LIGHTING_Switch_Light_Landing#2 (>L:SWS_LIGHTING_Switch_Light_Landing, Enum)
But no success.
The farthest if have come so far was turning on the Landing lights of the Kodiak but regardless which Enum (0 - Off, 1 - Pulse, 2 - On) i use the Lights always just turn on but unable to set it to Pulse or to Off.
Below are two examples of other events which work for me, one is a KVAR for Asobo Default Nav Lights and the next i a HVAR example about pushing an G1000 MFD Button through Mobiflight's WASM.
Now i would really appreciate if someone could explain to me with how to get this LVAR (>L:SWS_LIGHTING_Switch_Light_Landing, Enum) to work or if someone could just show me just the way i show below in the examples.
1 (>K:NAV_LIGHTS_SET)
Turn Nav Lights On / Set Nav Lights to 1 :
static enum EVENT_ID {NAV_LIGHTS_SET,};
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, NAV_LIGHTS_SET, "NAV_LIGHTS_SET");
hr = SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_A, NAV_LIGHTS_SET);
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, NAV_LIGHTS_SET, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
(>H:AS1000_MFD_SOFTKEYS_11)
Push G1000 MFD Button 11:
static enum EVENT_ID {MobiFlight_AS1000_MFD_SOFTKEYS_11,};
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, MobiFlight_AS1000_MFD_SOFTKEYS_11, "MobiFlight.AS1000_MFD_SOFTKEYS_11");
hr = SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_A, MobiFlight_AS1000_MFD_SOFTKEYS_11);
hr = SimConnect_TransmitClientEvent(hSimConnect, 0, MobiFlight_AS1000_MFD_SOFTKEYS_11, 0, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
Last edited: