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

FS2004 This works... but.......

Messages
1,468
Country
italy
Is there a better way? Will it loop for example? I have a flaps switch on my CH Yoke. (L:Flaps_Inhibit,bool) is set by a panel switch during the climb and again during final descent. So it equals 1 during climb, cruise and descent. The flaps are obviously up before the switch is set to 1. It would seem therefore that the yoke switch is not constantly asking for changes. Is that the case?
vololiberista
Code:
<!-- Flaps Inhibitor-->
<Element>
      <Select>
         <Value>(L:Flaps_Inhibit,bool) 1 == (A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 0 &gt; and
if{ 0 (>K:FLAPS_SET) 1 (>L:DM SOUND BEEP,number) }</Value>
      </Select>
   </Element>
 
Looks fine to me.
As long as the flaps are fully up it will not send the 0 flaps command.
However, as long as the flaps are down even a little it will keep sending the command until they are fully up.
But that won't take very long if they started as fully up.

You could add an extra condition to detect if the flaps are moving and only send the command if the flaps are not moving up.

You can also make it so that the inhibitor variable can only be turned on once the flaps are fully up.
 
Your last point is a good idea. What crossed my mind while reading your post is if I try to extend the flaps once inhibited. There is no "flaps handle" on the panel so they can only be controlled by clicking on the dial or by the yoke switch.
Viewing the wings from the passenger window seems to suggest that each activation is only once. The flaps twitch only when the command to extend is sent thus it would appear acting like a <click> command which is a once only authority.

The detection once the switch is "armed" allows about 0.25 deg of flaps to extend before they are again retracted immediately. Hence the flaps twitch if an extend command is sent. But seeing as the pilot can't see the flaps from the window it's not really a problem.
vololiberista
 
Last edited:
You could add an extra condition to detect if the flaps are moving and only send the command if the flaps are not moving up.

This wouldn't be necessary if (A:FLAPS HANDLE PERCENT, percent) is used instead of (A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) in the Flaps Inhibitor's element.

The detection once the switch is "armed" allows about 0.25 deg of flaps to extend before they are again retracted immediately. Hence the flaps twitch if an extend command is sent. But seeing as the pilot can't see the flaps from the window it's not really a problem.

The only way to avoid this effect is by placing the control code inside a <On Event> method, with its pros an cons.

Tom
 
Actually Tom, changing to (A:FLAPS HANDLE PERCENT, percent) solves that problem of flaps twitching.
vololiberista
 
Back
Top