• 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.

P3D v2 Settable simulation variables?

Messages
3
Country
us-utah
I'm not sure how these work. For example, I have no problem setting the key codes (K) from XML gauges. But I can't seem to get these to work if they are aircraft codes (A) even though the simulation variable is listed as 'settable' in the SDK documentation.

I'm specifically interested in the 'trailing edge flaps [left|right] percent' variable in the Aircraft Controls Data. I thought I was onto a clever idea...reading through the pilot's handbook for the Grumman Goose it says "the flaps will not come down at speeds in excess of approximately 110 MPH" (or are pushed back up at 110+). I wanted to model this effect by modifying the stock Goose gauge. But no, the aircraft variables don't actually appear to be settable as the SDK docs lead you to believe.

So, when are they settable? Can I model this outside an XML gauge...perhaps in a C++ gauge?

Thanks!
 
Well thank you.

I've never worked with SimConnect before. Is a SimConnect gauge something that's done, or is that stretching the limits of the sim?
 
The VC10 has a flaps isolate panel operated by a switch, below represented by (L:Flaps_Inhibit,bool) 1 ==. This locks the flaps in the up position so that nothing happens if you try to operate the flaps lever. so you could replace the 'switch' with a speed constraint.
The flaps inhibit panel is a little more complex than what you see below, but this is the code that actually stops the flaps moving.
vololiberista

Code:
<!-- Flaps Inhibit -->
   <Element>
      <Select>
         <Value>(L:Flaps_Inhibit,bool) 1 == (A:FLAPS HANDLE PERCENT, percent) 0 &gt; and
if{ 0 (>K:FLAPS_SET) }</Value>
      </Select>
   </Element>
 
That's actually quite clever and got me thinking. If I modify the flaps switch instead of the flaps position gauge, then use a local variable to indicate the position of the switch, I could effectively hide the FLAPS_SET variable behind the local variable. Then I could do the speed checking just as you suggest and could model the effect I'm going for fairly well....I think...but it's late here. ;)
 
Back
Top