AM 4.0 beta and MS2020 flap indicators

Latest Information on Sim Innovation's flagship product Air Manager

Moderators: russ, Ralph

Post Reply
Message
Author
falcon50
Posts: 17
Joined: Thu Apr 13, 2017 4:03 am

AM 4.0 beta and MS2020 flap indicators

#1 Post by falcon50 »

Hi,

Again, about the MS2020 Baron G58.
The display of the flap indicator is strange.
The apr lamp does not continue to display.

Where should I edit?

User avatar
Sling
Posts: 5239
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: AM 4.0 beta and MS2020 flap indicators

#2 Post by Sling »

In the instrument script.

falcon50
Posts: 17
Joined: Thu Apr 13, 2017 4:03 am

Re: AM 4.0 beta and MS2020 flap indicators

#3 Post by falcon50 »

Beechcraft B58 --I made a clone of the flaps indicator and changed various scripts, but the APR lamp does not appear.


function PT_liteup_FSX(flapsdeployment)

flapsdeployment = var_round(flapsdeployment / 100, 1)

visible(img_flaps_transit, (flapsdeployment > 0 and flapsdeployment < 0.5) or (flapsdeployment > 0.5 and flapsdeployment < 1) )

visible(img_flaps_apr, flapsdeployment == 0.5)

visible(img_flaps_down, flapsdeployment == 1)

end


Will it be displayed if I change any of the above?

Or maybe the data output of MSFS2020 is strange?
It is displayed properly in P3D.

User avatar
Sling
Posts: 5239
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: AM 4.0 beta and MS2020 flap indicators

#4 Post by Sling »

What is the variable flapsdeployment doing from the sim. Whatever it’s doing will answer your question. For the apr light to be on it must be equal to 50.

falcon50
Posts: 17
Joined: Thu Apr 13, 2017 4:03 am

Re: AM 4.0 beta and MS2020 flap indicators

#5 Post by falcon50 »

Thank you for replying to me.

This script is the default Baron flap indicator variable for fsx, P3D.
With this variable, the apr light will only light up for a moment in MSFS2020.
Are the variables output from MSFS2020 different in the first place?

User avatar
Sling
Posts: 5239
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: AM 4.0 beta and MS2020 flap indicators

#6 Post by Sling »

I don’t know. That is why I said you need to view the variable while you operate the flaps. This can be done with the AM debugger tools or simply by placing a print in the appropriate place in the instrument code. The output of the print can be viewed in the create/edit tab console.

User avatar
Ralph
Posts: 7924
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AM 4.0 beta and MS2020 flap indicators

#7 Post by Ralph »

You'll have to monitor the flaps value from the sim and use that for the visible.

falcon50
Posts: 17
Joined: Thu Apr 13, 2017 4:03 am

Re: AM 4.0 beta and MS2020 flap indicators

#8 Post by falcon50 »

I observed the value of TRAILING EDGE FLAPS LEFT PERCENT in Data Viewer.
The value at the time of flaps APR was 33.333333
I changed it as below, but the APR light still does not light up.
Am I writing something wrong?
Give up!


img_add_fullscreen("flaps_backdrop.png")

img_flaps_transit = img_add_fullscreen("flaps_lite.png")
viewport_rect(img_flaps_transit, 52,12,40,40)

img_flaps_apr = img_add_fullscreen("flaps_lite.png")
viewport_rect(img_flaps_apr, 52,60,40,40)

img_flaps_down = img_add_fullscreen("flaps_lite.png")
viewport_rect(img_flaps_down, 52,108,40,40)

function PT_liteup(flapsdeployment)

flapsdeployment = var_round(flapsdeployment, 1)

visible(img_flaps_transit, (flapsdeployment > 0 and flapsdeployment < 0.4) or (flapsdeployment > 0.4 and flapsdeployment < 1) )

visible(img_flaps_apr, flapsdeployment == 0.4)

visible(img_flaps_down, flapsdeployment == 1)

end

function PT_liteup_FSX(flapsdeployment)

flapsdeployment = var_round(flapsdeployment / 100, 1)

visible(img_flaps_transit, (flapsdeployment > 0 and flapsdeployment < 0.5) or (flapsdeployment > 0.5 and flapsdeployment < 1) )

visible(img_flaps_apr, flapsdeployment == 0.5)

visible(img_flaps_down, flapsdeployment == 1)

end

function PT_liteup_FS2020(flapsdeployment)

flapsdeployment = var_round(flapsdeployment / 100, 1)

visible(img_flaps_transit, (flapsdeployment > 0 and flapsdeployment < 0.33333333) or (flapsdeployment > 0.33333333 and flapsdeployment < 1) )

visible(img_flaps_apr, flapsdeployment == 0.33333333)

visible(img_flaps_down, flapsdeployment == 1)

end

xpl_dataref_subscribe("sim/flightmodel2/controls/flap1_deploy_ratio", "FLOAT", PT_liteup)
fsx_variable_subscribe("TRAILING EDGE FLAPS LEFT PERCENT", "Percent", PT_liteup_FSX)
fs2020_variable_subscribe("TRAILING EDGE FLAPS LEFT PERCENT", "Percent", PT_liteup_FS2020)

User avatar
Ralph
Posts: 7924
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AM 4.0 beta and MS2020 flap indicators

#9 Post by Ralph »

It's better to take a bit of a margin, so from 0.33 to 0.34 for example.
But the instrument has already been updated, so you can forget about it.

Post Reply