Jump to content
The simFlight Network Forums

How to programaticly set Heading Bug -or other Items??

Recommended Posts


I have just started looking at FSUIPC and was trying to programaticly set the heading bug. I saw the entries for VOR1 OBS and VOR2 OBS but no mention of the heading bug. Is that an unlabeled offset somewhere that I can do a FSUIPC_Write() and set the desired heading? Or can I somehow programaticly issue a keyboard command w/ a parameter (the desired heading bug setting) via FSUIPC - I found the control ID for the heading bug: "HEADING_BUG_SET 66042" in the list of control document - but do not know how to programaticly use that.



Dave Snyder

Waukesha, WI

Link to comment
Share on other sites

Incidentally, if what you meant was being able to write to it through the FSUIPC interface, the short answer is 'no'. You could set a key to send a parameter to it, yes, but since ou have to choose a value, and type it into the FSUIPC interface when you select which key to use, it would be kind of pointless.


Link to comment
Share on other sites

Thanks for the quick response! I see that in my list now - I just skipped the AutoPilot Section thinking that wasn't it. I can use the Write() function and set it just as I wished.

As to your second note, yes that was what I meant. I was wondering if there was a way to create a keystroke with a value as a parameter so that I wasn't limited to just using the pre-defined parameter value (from the FSUIPC keyboard shortcut config dialog). I guess everything that I would want to set in there probably has an offset in the memory block that I can more easily set with the Write() command anyway.

Thanks again!

Dave Snyder

Link to comment
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
  • 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.