*** FIXED sort of*** HSI GS help FS2020 with GSN530

Questions about deployment and use of Air Manager Instruments

Moderators: russ, Ralph

Message
Author
JackZ
Posts: 2262
Joined: Mon Feb 22, 2016 1:02 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#11 Post by JackZ »

First things first, have you selected the proper source in the instrument properties? It should be set to HSI
Second, it should be run on AM 4.0 beta for the plugin to run with MSFS.

I had a look at my instrument code, and it was developped on AMv2.3 at a time where MSFS didn't even existed, so there was no MSFS2020 subscribe functions for this.
I don't know if this AM4.0 beta version can use still fsx_variable_subscribe() for MSFS or if it is now mandatory to use fs2020_variable_subscribe() instead (@Ralph ?)

In the latter case, i would probably have to modify the code to add MSFS subscriptions, provided that the MSFS variables are still the same as FSX/P3D ones.
So a version 1.40 is probably required, then it's up to Ralph to publish it on the store.

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

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

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#12 Post by Ralph »

It is already converted to FS2020 as far as I know. FS2020 requires fs2020_variable_subscribe, but the variables are generally the same. Not all of them though...

brlowe
Posts: 99
Joined: Fri Oct 16, 2020 6:08 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#13 Post by brlowe »

JackZ wrote: Wed Feb 03, 2021 10:59 pm First things first, have you selected the proper source in the instrument properties? It should be set to HSI
Second, it should be run on AM 4.0 beta for the plugin to run with MSFS.

I had a look at my instrument code, and it was developped on AMv2.3 at a time where MSFS didn't even existed, so there was no MSFS2020 subscribe functions for this.
I don't know if this AM4.0 beta version can use still fsx_variable_subscribe() for MSFS or if it is now mandatory to use fs2020_variable_subscribe() instead (@Ralph ?)

In the latter case, i would probably have to modify the code to add MSFS subscriptions, provided that the MSFS variables are still the same as FSX/P3D ones.
So a version 1.40 is probably required, then it's up to Ralph to publish it on the store.

Jacques
Ralph is correct this instrument has been converted to FS2020 and has the FS2020 subscribes and commands.
When you download the gauge from AM 4.0 you get one that the Logic.lua file has a rev 1.35 in it. This version the Glide Slope would not work for me at all. I tried all the different setting NAV1, NAV2 and HSI. I tried this with both of my NAV radios tuned to the same ILS approach and none of these options worked. I had 2 CDI indicators on the panel, one connected to NAV1 and the other to NAV2 and they both worked correctly.
I posted on a thread over at flightsimulator.com about having a mooney panel complete except the glide slope and someone replied it worked on his panel so I had him export the gauge and send it to me. His Logic.lua file was a REV 1.2 and it worked great right away with no Glide Slope issues. I did a compare of the logic files and there are a couple differences. I just have not had time to figure out which one is the one that fixes it. I plan on doing that. Here are the 2 files if you want to compare them.
Please let me know if it is not ok to include these files and I will remove them right away.
KI525A Rev 1.2 logic.lua
(16.37 KiB) Downloaded 214 times
KI525A Rev 1.35 logic.lua
(17.68 KiB) Downloaded 231 times

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#14 Post by Keith Baxter »

Hi,

A very quick look reveals that some of the variable subscribes have been commented out.

Perhaps that is a good starting place.

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

brlowe
Posts: 99
Joined: Fri Oct 16, 2020 6:08 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#15 Post by brlowe »

Keith Baxter wrote: Thu Feb 04, 2021 3:59 pm Hi,

A very quick look reveals that some of the variable subscribes have been commented out.

Perhaps that is a good starting place.

Keith
If you look at the ones that have been commented out they have been replaced right below that with at least 1 change.

JackZ
Posts: 2262
Joined: Mon Feb 22, 2016 1:02 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#16 Post by JackZ »

Okay try this version, and report please.
The FSX and XPlane behavior are reversed, so the failure flag was always set in FSX, and as a consequence, the GS needle was set to park .
Hopefully that should solve the problem.
KI525A Rev 1.40 logic.lua
(17.68 KiB) Downloaded 230 times
Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

brlowe
Posts: 99
Joined: Fri Oct 16, 2020 6:08 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#17 Post by brlowe »

JackZ wrote: Thu Feb 04, 2021 8:11 pm Okay try this version, and report please.
The FSX and XPlane behavior are reversed, so the failure flag was always set in FSX, and as a consequence, the GS needle was set to park .
Hopefully that should solve the problem.
KI525A Rev 1.40 logic.lua

Jacques
I downloaded that file and tried it. Remember I'm using FS2020. The change did not fix the glide slope in FS2020.
I did make sure I was on HSI and I made sure I had the changed file in place after renaming it. The file still says REV 1.35 inside it but I did make sure they was a change in it.

JackZ
Posts: 2262
Joined: Mon Feb 22, 2016 1:02 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#18 Post by JackZ »

Okay that was a shot in the dark.
It will take some time to figure out what's going on, let me a couple of days.

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

brlowe
Posts: 99
Joined: Fri Oct 16, 2020 6:08 pm

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#19 Post by brlowe »

JackZ wrote: Thu Feb 04, 2021 11:00 pm Okay that was a shot in the dark.
It will take some time to figure out what's going on, let me a couple of days.

Jacques
Thanks for taking a look and no rush as I have a working version with the 1.2 file. Just be nice to get the current download version fixed.
I may do some more looking tomorrow at the 2 files and see what I can fine.

rsl1949
Posts: 1
Joined: Sat Jul 16, 2022 2:23 am

Re: *** FIXED sort of*** HSI GS help FS2020 with GSN530

#20 Post by rsl1949 »

Under --GS Bugs around line 196, here is a simple fix to the GS indicators not showing in ILS approach.
change the first line

if glideslopeflag == 1 -- GS signal not received

to

if glideslopeflag == 1 and gbl_target_hdef == 0 then -- GS signal not received

Richard

Post Reply