Cowl Flap Gang-Switch IN-OP after update

Post any technical issues here. This forum gets priority from our staff.
new reply
User avatar
WB_FlashOver
Technical Sergeant
Posts: 946
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Cowl Flap Gang-Switch IN-OP after update

Post by WB_FlashOver »

I notice that the cowl flap gang-switch no longer operates ALL switches. :? It only operates switches of selected engine(s). The way is was before was much better and proper. If I want to operate switches selectively I can assign buttons/keys for this or do it with mouse. Now when I get to altitude and un-select all engines so I can dial in desired MP across my engines the gang-switch no longer activates switches but still animates the gang-switch bar with the switches sticking through the bar. This change was not mentioned in the update information.

I look forward to a fix for this. :wink:

Thanks
Roger
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

ROB - A2A
A2A Colonel
Posts: 3647
Joined: 02 Mar 2004, 02:56

Re: Cowl Flap Gang-Switch IN-OP after update

Post by ROB - A2A »

I can't recreate your problem. The gang switch operates all engines regardless of the engine selection. Anyone else with this problem?

regards
ROB
A2A Simulations Inc.

User avatar
WB_FlashOver
Technical Sergeant
Posts: 946
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Re: Cowl Flap Gang-Switch IN-OP after update

Post by WB_FlashOver »

ROB - A2A wrote:I can't recreate your problem. The gang switch operates all engines regardless of the engine selection. Anyone else with this problem?

regards
ROB
Hello Rob,
I'm using LINDA to run the gang switch. Here's a quick video showing it. It worked properly before update. Thanks for looking into this.

Cheers
Roger

Last edited by WB_FlashOver on 17 Oct 2019, 08:35, edited 1 time in total.
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

User avatar
gulredrel
Master Sergeant
Posts: 1275
Joined: 12 Jun 2011, 02:11
Location: Germany

Re: Cowl Flap Gang-Switch IN-OP after update

Post by gulredrel »

Using the gang switch with the mouse also works all cowl flap switches regardless of engine selection on my end.

What does LINDA do exactly here? Directly interfering with internal variables?
I have set open / close cowl flaps as switches in A2A config tool. Using these keys, only the cowl flaps on the selected engines move together with the switches. Maybe you need to change the LINDA setting after the updated compared to the initial version of the Constellation?
"Give me a ping, Vasili. One ping only, please."

User avatar
Scott - A2A
A2A General
Posts: 16839
Joined: 11 Feb 2004, 12:55
Location: USA
Contact:

Re: Cowl Flap Gang-Switch IN-OP after update

Post by Scott - A2A »

I could be wrong but I believe in accusim, the code sees the gang switch move, then moves each of the appropriate cowl flaps. So there is no gang switch variable, so to speak, that performs this function.

Scott.
A2A Simulations Inc.

ROB - A2A
A2A Colonel
Posts: 3647
Joined: 02 Mar 2004, 02:56

Re: Cowl Flap Gang-Switch IN-OP after update

Post by ROB - A2A »

For the upper gang switch try to set (L:GangCloseCowlDrag,bool) to 1, when you move it and to 0 when you don't.

For the lower gang switch try to set (L:GangOpenCowlDrag,bool) to 1, when you move it and to 0 when you don't.

This variables tell the system that you "grab and drag" the thing.

regards
ROB
A2A Simulations Inc.

User avatar
WB_FlashOver
Technical Sergeant
Posts: 946
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Re: Cowl Flap Gang-Switch IN-OP after update

Post by WB_FlashOver »

ROB - A2A wrote:For the upper gang switch try to set (L:GangCloseCowlDrag,bool) to 1, when you move it and to 0 when you don't.

For the lower gang switch try to set (L:GangOpenCowlDrag,bool) to 1, when you move it and to 0 when you don't.

This variables tell the system that you "grab and drag" the thing.

regards
ROB
Thank you Rob. I messed with your command suggestions but am not getting any response from gang switch at all. Now this could be due to my very limited knowledge of all this. I'm not sure where to put the < bool >. Here is the way the LINDA team wrote the command in their module for the L049. As I'm sure you know 66243 is FSX default command for Increase Cowl Flaps and 66244 is Decrease Cowl Flaps. I assume the command directly above that is the animation for the gang switch.

Code: Select all

function CowlFlapsAll_inc ()
    if ipc.readLvar("GangSwitchCowlFlapON") < 90 then
    ipc.writeLvar("GangSwitchCowlFlapON", 100)
    ipc.control(66243)
    end

end

function CowlFlapsAll_dec ()

    if ipc.readLvar("GangSwitchCowlFlapOFF") < 90 then
    ipc.writeLvar("GangSwitchCowlFlapOFF", 100)
    ipc.control(66244)
    end
end

function CowlFlapsAll_neutral ()
    if ipc.readLvar("GangSwitchCowlFlapON") >= 90 then
    ipc.writeLvar("GangSwitchCowlFlapON", 0)
    ipc.control(66243)

    elseif ipc.readLvar("GangSwitchCowlFlapOFF") >= 90 then
    ipc.writeLvar("GangSwitchCowlFlapOFF", 0)
    ipc.control(66244)
    end

end
This only operates selected engines cowl flaps after the update. I can get by with it as it is but I will continue to look into it. Gypsy Baron has a great knowledge of this stuff. Maybe he has an idea.

If you could tell me how to enter your command into the above lines I would be more than happy to give it a go.

Thank you so much for looking into this issue. :D

Cheers
Roger
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

User avatar
WB_FlashOver
Technical Sergeant
Posts: 946
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Re: Cowl Flap Gang-Switch IN-OP after update

Post by WB_FlashOver »

Ok, a little more testing and thought I'd post the findings. For now I've created commands to open/close/neutral all cowl flaps using 2 buttons. If I set commands within FSX the keys only operate the selected engine(s). If I assign commands in the L049 Input Configurator it only operates selected engine(s). This is all new sense the update.

Regards
Roger
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

ROB - A2A
A2A Colonel
Posts: 3647
Joined: 02 Mar 2004, 02:56

Re: Cowl Flap Gang-Switch IN-OP after update

Post by ROB - A2A »

Try this:
Add ipc.writeLvar("GangOpenCowlDrag",1) as the first line in INC function.
Add ipc.writeLvar("GangCloseCowlDrag",1) as the first line in DEC function.

Add these two lines

ipc.writeLvar("GangOpenCowlDrag",0)
ipc.writeLvar("GangCloseCowlDrag",0)


as the last two lines of the NEUTRAL function.

regards
ROB
A2A Simulations Inc.

User avatar
WB_FlashOver
Technical Sergeant
Posts: 946
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Re: Cowl Flap Gang-Switch IN-OP after update

Post by WB_FlashOver »

Thank you Rob,
I've tried these commands in various combinations with the original LINDA commands and by themselves. I'm currently using them only (see below) but the gang switch still only activates selected engine(s).

Another thing I have found is that not only are the cowl flaps now dependent on selected engines, so are the mixtures. I did not test other functions such as fuel pumps, carb heat, blowers, etc as I have them set with custom commands that stipulate an action with a timer between individual actions. My guess is that all engine commands are now dependent on selected engines. I have altered my routine as work-a-rounds for the time being. 8)

Cheers
Roger

Code: Select all

function CowlFlapsAll_inc ()
    ipc.writeLvar("GangOpenCowlDrag", 1)
    end


function CowlFlapsAll_dec ()
    ipc.writeLvar("GangCloseCowlDrag", 1)
    end


function CowlFlapsAll_neutral ()
    ipc.writeLvar("GangOpenCowlDrag", 0)
    ipc.writeLvar("GangCloseCowlDrag", 0)
    end
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

ROB - A2A
A2A Colonel
Posts: 3647
Joined: 02 Mar 2004, 02:56

Re: Cowl Flap Gang-Switch IN-OP after update

Post by ROB - A2A »

Roger, don't replace, just add new lines to your existing code.

Code: Select all


function CowlFlapsAll_inc ()
    ipc.writeLvar("GangOpenCowlDrag", 1)
    if ipc.readLvar("GangSwitchCowlFlapON") < 90 then
    ipc.writeLvar("GangSwitchCowlFlapON", 100)
    ipc.control(66243)
    end

end

function CowlFlapsAll_dec ()
    ipc.writeLvar("GangCloseCowlDrag", 1)
    if ipc.readLvar("GangSwitchCowlFlapOFF") < 90 then
    ipc.writeLvar("GangSwitchCowlFlapOFF", 100)
    ipc.control(66244)
    end
end

function CowlFlapsAll_neutral ()
    if ipc.readLvar("GangSwitchCowlFlapON") >= 90 then
    ipc.writeLvar("GangSwitchCowlFlapON", 0)
    ipc.control(66243)

    elseif ipc.readLvar("GangSwitchCowlFlapOFF") >= 90 then
    ipc.writeLvar("GangSwitchCowlFlapOFF", 0)
    ipc.control(66244)
    end
    ipc.writeLvar("GangOpenCowlDrag", 0)
    ipc.writeLvar("GangCloseCowlDrag", 0)
end

regards
ROB
A2A Simulations Inc.

User avatar
WB_FlashOver
Technical Sergeant
Posts: 946
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Re: Cowl Flap Gang-Switch IN-OP after update

Post by WB_FlashOver »

Rob, yeah, that was one of the various combinations I tried. It still works the gang switch and still operates the selected engine switches but not the un-selected engines. I even tried it again by copying and pasting your code into my actions.lua file.

Thanks for the reply Sir.
Roger
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

new reply

Return to “Lockheed Model 049 Tech Support”

Who is online

Users browsing this forum: No registered users and 7 guests