FSC190

737NGX Modul Groundpower Switch

Recommended Posts

In this funktion, right and left  mouseclick  are assigned in the wrong way.

Ground Power on must be Left Mouse click

Ground Power off must be Right Mouse click

Hallo Günther

In deinem Modul ist in der GroundPower_Funktion sind die Variablen für  rechten und linken Mausklick verwechselt.

function NGX_GRD_PWR_on ()
    if ipc.readLvar('ngx_switch_17_a') ~= 100 then
        ipc.control(PMDGBaseVar+17, PMDG_ClkR)
		DspShow ("GPWR", "on", "GRD PWR", "on")
    end
end

function NGX_GRD_PWR_off ()
    if ipc.readLvar('ngx_switch_17_a') ~= 0 then
        ipc.control(PMDGBaseVar+17, PMDG_ClkL)
		DspShow ("GPWR", "off", "GRD PWR", "off")
    end
end

PWR on muss mit PMDG_ClkL ausgeführt werden und PWR off  mit PMDG_ClkL

 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Thanks Roland,

 

I have fixed it.

Will upload a new modules maybe in the next week

Share this post


Link to post
Share on other sites

I tested it again, Roland, but all is workign as it should!

Share this post


Link to post
Share on other sites

I am not sure if I understand you right Günther.

you fixed it and it is working OK now?

Or it worked OK before you fixed it?

The funktion NGX_GRD_PWR_On does a right click on the GRD_PWR_Switch, but that is not correct, you have to do a left click to turn GRD_PWR on.

That's with V4.8 of the PMDG NGX Module

 

Share this post


Link to post
Share on other sites

I fixed it according to your advice, but I have made now a flight and tested it and it was then not working correctly.

Or do you mean both do need a LEFT click? PMDG_ClkL?

 

Share this post


Link to post
Share on other sites

Ich muss das leider mal auf Deutsch beantworten.

Wenn du im Overhead Panel mit der rechten Maustaste auf den GRD PWR Switch klickst, geht der Schalter nach oben auf OFF und wieder zurück in die Mittelstellung. Beim Linksklick geht er nach unten auf ON und zurück in die Mittelstellung.

So sollte es auch die Funktion machen.

Hast du evtl eine Linkshändermaus? Da wären Rechte und Linke Maustaste auch vertauscht.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now