STF-DIR Posted December 20, 2009 Report Share Posted December 20, 2009 Hello, i try to read the AP HDG Bug setting in my PSS757 ( Offset 07CC 2 Autopilot heading value, as degrees*65536/360 Ok Ok) But the result is every time 0. When i change the Aircraft eg. to the Beachkraft 350 it works. What i', doing wrong? Matthias Link to comment Share on other sites More sharing options...
Pete Dowson Posted December 21, 2009 Report Share Posted December 21, 2009 i try to read the AP HDG Bug setting in my PSS757...What i', doing wrong? If your code works okay with the default aircraft, then it means the add-on aircraft implements its own autopilot and therefore handles its own heading bug. Many sophisticated add-on aircraft do such things, including LevelD and PMDG aircraft. Regards Pete Link to comment Share on other sites More sharing options...
STF-DIR Posted December 21, 2009 Author Report Share Posted December 21, 2009 Hello Pete, yes it works perfekt with default Aircrafts. Is her absolutely no way to read this Values ? Matthias Link to comment Share on other sites More sharing options...
Pete Dowson Posted December 21, 2009 Report Share Posted December 21, 2009 Is her absolutely no way to read this Values ? If that aircraft uses FSUIPC then it might store the values in FSUIPC private offsets. But even if they do, unless they openly publish them, there's no way to know where they are without hacking into their code. The same applies to PMDG aircraft. Level D, however, do provide an SDK for theirs. You might find folks who know more about that particular aircraft over in their support forum. [LATER] It occurred to me that the PSS757 might, just possibly, be using Local named gauge variables ("L:vars"). If so, then you might be able to read the values from them in a little Lua plug-in -- L:var access facilities are available in both FSUIPC3 and FSUIPC4 now (get the latest updates from the Updates announcement in this Forum). You can find out initially in one of two ways: 1. Assign a button or keypress to the "List local panel vars" control which you will find in the assignments drop-down now, or 2. Install the Log Lvars Lua plug-in into the FS Modules folder, and run that by assigning a button or keypress to the resulting Lua Log Lvars control. The latter has the advantage of providing an on-screen listing. If you can read the values you need this way, then the Lua plug-in can copy them to the free user Offsets (66C0-66FF) for your program to access. Regards Pete Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now