• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Flaps coding

Dev One

SOH-CM-2023
Does anyone know where the coding for the flaps are held? & if so can it be modified/disabled?
I know that there is the standard Lever_Flaps code in the makemdl.parts listing, but I have deleted this code & the flaps through the keyboard or joystick still operate. The reason I ask is that I wish to add other operations within the standard code if at all possible.
Keith
 
Does anyone know where the coding for the flaps are held? & if so can it be modified/disabled?
I know that there is the standard Lever_Flaps code in the makemdl.parts listing, but I have deleted this code & the flaps through the keyboard or joystick still operate. The reason I ask is that I wish to add other operations within the standard code if at all possible.
Keith

Keith,

There is no need to delete anything from makemdl.parts. It is there for you to Add your own code for anything you wish.

There are several ways to code flaps in Gmax and FS. See the Makemdl SDK for a list of names.

The FS animated name tags are l_flap and r_flap, pivot on the X axis, and deflect based on the [flaps.nn] section in the aircraft.cfg.

The rest of the options are key framed animation options and they are listed as follows:
Flaps
Beech Baron
L_Flap, R_Flap
Axis (X Driven)
Flaps (Key Framed)
Mooney Bravo
L_Flap_Key, R_Flap_Key
Key 0 = 0% Deflection, Key 100 = 100% Deflection
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Lead_Edge_Flap0
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
L_Pct_Lead_Edge_Flap0
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Lead_Edge_Flap1
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Lead_Edge_Flap1
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Trail_Edge_Flap0
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Trail_Edge_Flap0
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Trail_Edge_Flap1
Key 0 = Retracted, Key 100 = 100% Deployed
Flaps (Leading and Trailing Edge)
Boeing 777
R_Pct_Trail_Edge_Flap1
Key 0 = Retracted, Key 100 = 100% Deployed


In addition to these options, you can have multiple [flap.nn] sections to individually control your flaps, and their effects on flight characteristics like pitch, lift, and drag, using the leading and trailing edge names to differentiate the effects.
 
Milton, Thanks, yes I have the SDK, but those you quote above are for the exterior parts - I'm more interested in the interior 'lever' function, which as I said above seems to be hard coded somewhere. I have created my own modification which works, but it is still overwritten by the hard code & I do not seem to be able to connect the two.
The idea is:
There is a lever to select either up or down, but the flaps should not move until a hydraulic wobble pump activates. For the latter I have coded a tick18 that activates by holding down the left click or the right click.
Maybe I've got to be even cleverer with my .xml code - which I must admit is done blind -a try & see if it works technique!
Keith
 
This is the one I use for the VC:

Flaps
Cessna 172
Lever_Flap
Key 0 = No Deflection, Key 100 = Max Deflection
 
Back
Top