• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Setting AVars within a Simconnect gauge

taguilo

Resource contributor
Messages
1,585
Country
argentina
Hi,

It seems that AVars which depend on many other var sources are not possible to control just by using Simconnect in a regular gauge.
As the assignment occurs at the end rather than at the beginning of a frame (as per SDK), the variable is indeed actualized, but it is overwritten again by FS's own calcs previous to show its value in the panelset. :confused:
I've found this oddity working with Turboprop engine vars like PROP RMP, CN2, etc.
Has anyone succeeded in controlling any of these ones?

Tom
 

JB3DG

Resource contributor
Messages
1,325
Country
southafrica
I havent had any problems executing the SetDataOnSimobject from the gauge callback function which runs at 18Hz...I imagine that since it is being executed with each gauge rendering cycle that it keeps everything in sync.
 
Last edited:

ddawson

Resource contributor
Messages
862
Country
canada
Tom,

I think this is really a matter of what variable you are trying to set. As you have discovered, some variables are immediately recalculated by the sim, so setting them to a desired value has no useful effect. Others will "accept" a set value and can be controlled by the programmer. I would presume this has either to do with how frequently the sim updates them, or where they are in the chain of calculations being done.
The only wisdom seems to be experiment until you find the one that drives the effect you are looking for.

Doug
 

taguilo

Resource contributor
Messages
1,585
Country
argentina
Yes Doug, it's like that. Those variables that depend on themselves, or maybe on single table results, for example CN1, Battery, Fuel Quantity, etc, are easily settable. Others, like PROP RPM, are useless to assign as they are constantly calculated from different tables and factors. I wonder the reason for making them "settable" if you can't make an effective use of this property on them:confused:...unless there is a trick to make them work that I'm missing, and so the reason for my question.

Tom
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
Tom, keep in mind that the main purpose of "settable A:vars" was to synchronize a remote aircraft's instruments with the PIC's panel/gauge system when in Shared Cockpit mode...
 

taguilo

Resource contributor
Messages
1,585
Country
argentina
Thanks Bill, I didn't know that. :)
Still making test, with good and not so good results...

Tom
 
Top