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?
AM 4.0 beta and MS2020 flap indicators
Re: AM 4.0 beta and MS2020 flap indicators
In the instrument script.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: AM 4.0 beta and MS2020 flap indicators
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.
”
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.
Re: AM 4.0 beta and MS2020 flap indicators
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.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: AM 4.0 beta and MS2020 flap indicators
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?
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?
Re: AM 4.0 beta and MS2020 flap indicators
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.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: AM 4.0 beta and MS2020 flap indicators
You'll have to monitor the flaps value from the sim and use that for the visible.
Re: AM 4.0 beta and MS2020 flap indicators
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)
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)
Re: AM 4.0 beta and MS2020 flap indicators
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.
But the instrument has already been updated, so you can forget about it.