Jump to content
The simFlight Network Forums
xdefiantx

MSFS 2020 G1000 G58 check "Current State" of displayed VOR on HSI

Recommended Posts

Hi All,

I've been configuring a setup to run the G1000 G58 Baron in MSFS 2020.

I can set a value for say the CDI of VOR1 to something and have it sync to inbound track when actioned, but I would like it to only change the value of the currently displayed VOR.

For example with my current script below, if VOR1 is currently being displayed it will sync the track to the VOR station. Unfortunately it will also change the value and set it, even if the VOR2 is being displayed on the HSI. If switched back to VOR1 on HSI it will show the changed track.

val = ipc.readUW("0c50")
ipc.control(65716, val*360/65536)

What I need it to do is to check if VOR1 or VOR2 is currently displayed on the HSI, and only sync the CDI to inbound track on currently displayed VOR.

Is there any way I can extract the current displayed VOR with FSUIPC to cross reference the action?

Regards,

Cameron.

 

Share this post


Link to post
Share on other sites
On 11/22/2020 at 10:05 AM, xdefiantx said:

Is there any way I can extract the current displayed VOR with FSUIPC to cross reference the action?

Have you tried looking at the NAV1/2 flags in 0C4B / 0C5B to see which is active? Maybe in combination with the localiser/VOR flag in 0C4D / 0C70....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.