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

FSXA SET_FLAPS Event

Messages
45
Country
france
[Resolved] SET_FLAPS Event

Hi,

Just a little question, I'm looking in the SDK website the simulation variable which allow to check the current value for K:FLAPS_SET (0-16383) ?

Is this simulation variable is (A:FLAPS HANDLE INDEX,number) ?

Thanks a lot for your help !

JardY.
 
Last edited:
In fact, in Rollus Rafale, the Event K:FLAPS_SET isn't protected so the K Event flood in multiplayer so I want to check if the K:FLAPS_SET is already set to 16383. Without this check the K event flood :

Code:
(L:rafTankP, bool) 1 < (L:rafTankC, bool) 1 < &&
(A:PAYLOAD STATION WEIGHT:2,pounds) 0 > &&
(A:PAYLOAD STATION WEIGHT:3,pounds) 0 > &&
(A:PAYLOAD STATION WEIGHT:4,pounds) 0 > &&
(A:PAYLOAD STATION WEIGHT:5,pounds) 0 > &&
(A:PAYLOAD STATION WEIGHT:6,pounds) 0 > &&  
(A:PAYLOAD STATION WEIGHT:7,pounds) 0 > &&
(A:FLAPS HANDLE INDEX,number) 16383 != &&
if{ 16383 (>K:FLAPS_SET) }

So the values 16383, 12000, 11000, 10000, 8000, 6000, 4000 and 0 corresponding to the flaps.positions in Aircraft.cfg ?

Code:
[Flaps.0]
type= 1
span-outboard= 0.500
extending-time= 0.500
system_type= 0
damaging-speed= 800.000
blowout-speed= 800.000
lift_scalar= 1.000
drag_scalar= 1.00
pitch_scalar= 1.000
flaps-position.0= 0     //lisse
flaps-position.1= 1       
flaps-position.2= 2
flaps-position.3= 3    //MIC ou RLC
flaps-position.4= 4
flaps-position.5= 5   //RL12 
flaps-position.6= 5    //RLC + MIC
flaps-position.7= 6    //RL12 + RLC ou MIC
flaps-position.8= 6
flaps-position.9= 7    //RL12 + RLC + MIC
 
Last edited:
HI,

the (A:FLAPS HANDLE INDEX,number) is the flaps position number in the aircraft.cfg.. E.g.

flaps-position.0 = 0 // degrees
flaps-position.1 = 2 // degrees
flaps-position.2 = 5 // degrees

The (A:FLAPS HANDLE INDEX,enum) variable contains for example the "2" if
you select 5 degrees. Just do a readout of the variable to see what's in it.

Dietmar
 
Jardy, it appears that your flaps cfg entries are probably incorrect. Here is an excerpt from the FS2004 SDK:

"Each element of the flaps-position array indicates the deflection angle to which the flaps will deflect (degrees). The largest deflection angle will be the one used for full flap deflection."

So for example, this line:

flaps-position.9= 7

means that after 9 clicks, the flaps will only be lowered to 7 degrees.

Hope this helps,
 
Thanks for your replies !

Just to know :

When i'm setting 16383 (>K:FLAPS_SET) or 4000 (>K:FLAPS_SET) or ... 12000 (>K:FLAPS_SET) : How to know the correspondence between 4000, 12000 or 16383 and the value return by (A:FLAPS HANDLE INDEX,number) ?

Thanks again and sorry for my english skill :-/
 
Hi,

if you set 3 times xxxx (>K:FLAPS_SET) you set your flaps with 3 ticks
( 3 key hits, e.g.F7 ). Your (A:FLAPS HANDLE INDEX,number) variable will show after the first tick 1, the next tick 2 etc.. There is no relation to the
K:Flap_set value. If you want to get this value into the game, you need to set this value according to the flap degrees you want for this aircraft.
Whereby the value 0 is flaps up and the value 16383 is flaps full down. So, you just need to scale your flaps setting in the range 0 to 16383. For example: for 4 ticks set your value 4 times 4095 until your flaps are full down.

Hope this helps
Dietmar
 
Hi,

You shouldn't probably use 4 x 4095, unless that's really how your flaps work. If the settings are something like:

Notch Degrees Extension

0.............0
1.............5
2...........10
3...........20
4...........40

then each degree is worth 16383 / 40 = 409.575

Then these settings should be:

0
2048
4096
8191
16383

Hope this helps,
 
Back
Top