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

FSX A question about Flaps

Messages
278
Country
ca-britishcolumbia
Hello All,

Searching the forums and the SDK it appears the use of flaps can be limiting. Does anyone know a way to have the ability to set flaps to a specific angle? i.e 15 degrees. As every aircraft is different and based on the aircraft config I am trying to figure out how to get it close to specific angles in a generic sense. Thanks in advance.

Greg
 
Are you talking about having variable flaps? If not, the degrees that the flaps position to are defined in the aircraft.cfg. If so... I don't think it's possible without defining each individual position.
 
Thanks to you both, its for a generic autopilot with (for lack of a better word) Co-pilot feature that when triggered, it will turn on any lights that were forgotten, pitot, de-ice, ect. I am trying to include (again generic) way to place flaps a minimum angles for take-off and landing configurations. Which seems difficult with the variables allowed and the broad scope of flap configurations, which I am now thinking that maybe just moving the flaps if in the up position to prompt the pilot to deal with them or not sure if it can be done, but sure it is possible to have the gauge read the Aircraft.cfg and choose a common flap range.
 
(A:FLAPS NUM HANDLE POSITIONS, number) returns the number of available flap positions. Flaps-position.0,Flaps-position.5, Flaps-position.20, Flaps-position.40 in the aircraft.cfg will make this variable return 4 (this is from memory; might want to confirm that).
(A:FLAPS HANDLE INDEX, number) returns the current flap position.

To ensure that the plane has a takeoff flap position (i.e. more than 2 available positions) and then warn if the flaps are not set to at least the first position for takeoff while still on the ground, you can try something similar to the code below.

Code:
(A:FLAPS NUM HANDLE POSITIONS, number) 2 >
(A:FLAPS HANDLE INDEX, number) 1 < and
(A:SIM ON GROUND, bool) and
(L:Flaps Warning, bool) ! and
if{ 1 (>L:Flaps Warning, bool) }
 
Even reading the aircraft.cfg and setting the flaps that way can be an imperfect way of proceeding. For example, the PMDG 737 flap settings in the aircraft.cfg do not represent the real world settings. They have tweaked them to better represent the real world behaviour. So if you set the flaps to 15 deg in the case of the PMDG 737 that would give you flap position 1 or 2 which is only 1 or 2 degrees. See the flaps sections below and how they have listed the pseudo degrees which is the real world position of the flaps in each position.

Code:
[Flaps.0]
type=1                                   // ** FLAPS **
extending-time=39                        // Total seconds
span-outboard=0.69                         // 0.0 .. 1.0
flaps-position.0= 0.000                  // pseudo-degrees
flaps-position.1= 8.888                  // 1
flaps-position.2=18.333                  // 2
flaps-position.3=25.000                  // 5
flaps-position.4=31.111                  // 10
flaps-position.5=33.333                  // 15
flaps-position.6=35.000                  // 25
flaps-position.7=36.666                  // 30
flaps-position.8=40.000                  // 40
lift_scalar = 1.0
drag_scalar = 1.0
pitch_scalar= 1.0
system_type = 1

[Flaps.1]
type=2                                   // ** CORRECT LIFT**
extending-time=14                        // Total seconds
span-outboard=0.30                       // 0.0 .. 1.0
flaps-position.0= 0.000000               // pseudo-degrees
flaps-position.1= 2.653105               // 1
flaps-position.2= 8.209540               // 2
flaps-position.3= 12.35437               // 5
flaps-position.4= 14.48548               // 10
flaps-position.5= 15.34695               // 15
flaps-position.6= 10.25102               // 25
flaps-position.7= 9.560591               // 30
flaps-position.8= 1.32156                // 40
lift_scalar =-1.000
drag_scalar = 0.000
pitch_scalar=-0.5

[Flaps.2]
type=2                                   // ** CORRECT DRAG **
extending-time=20                        // Total seconds
span-outboard=0.30                       // 0.0 .. 1.0
flaps-position.0= 0.000000               // pseudo-degrees
flaps-position.1= 7.8893473              // 1
flaps-position.2= 15.257930              // 2
flaps-position.3= 20.006734              // 5
flaps-position.4= 19.763003              // 10
flaps-position.5= 18.353201              // 15
flaps-position.6= 17.344649              // 25
flaps-position.7= 15.968918              // 30
flaps-position.8= 0.000000               // 40
lift_scalar = 0.000
drag_scalar =-1.000
pitch_scalar= 0.0

You could hard code a small database and check the aircraft type against it (B737,B757,B767,B747 A320 etc etc) and then set the flap position based on the type. Anything not in your database you could default to flap position 1.

EDIT: As others have said I don't think there is a way you can set a particular flap degrees position, you can only set the flap handle number and the flap degrees is then set by the sim based on the aircraft.cfg data.
 
From the realism standpoint the main issue is what leading edge flaps do in the sim.
In the real world the main contribution to lift from LE flaps is to delay boundary layer separation to higher angle of attack, thereby raising the available lift coefficient and raising the stall angle
In the sim leading and trailing edge flaps both just raise the lift coefficient without affecting the angle of stall.
So even if you play with pseudo angles you probably can not exactly emulate the real world effects.
And, of course Type 1 flaps are TE and 2 are LE.
roy
 
Thank you all for your insight on this issue, As it stands I am thinking the best approach to a solution is add the flap component to an .ini file though would allow the user to manually set them for the gauge. I will post on how it makes out.

thanks again,
Greg
 
So added the flap component to an .ini file, that will allow the user to set the position number for the desired degrees of flaps automatically using "FLAPS HANDLE INDEX" though simconnect.
 
Back
Top