plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!

question

donstim avatar image
donstim asked donstim edited

Spoiler Max Deflection Angle ignored

What is the purpose of the variables spoiler_limit and air_spoiler_limit in the airplane geometry section of the flight model.cfg file? They don't appear to have any effect. For example, here is a screenshot of your default A320neo with the value of spoiler_limit set to 10. It does not affect either the spoiler deflection shown in the external view or the spoiler deflection shown by the simvar. Regardless of the value set for that variable, the spoiler position shown by the spoiler position simvars is 1 radian, or 57.3 degrees.

screenshot-1017.png

defaultaircraftflightmodelanimation
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered donstim edited

Your assumptions are right. This is what's stated in the documentation : https://docs.flightsimulator.com/html/Samples_And_Tutorials/Tutorials/Defining_A_Flight_Model.htm?rhhlterm=spoilers%20spoiler#spoilers

I am able to witness the consequences of my modifications of the spoiler_limit parameter on the lift and drag, at least in the Debug Aircraft Sim Curves panel.
When you mention you don't witness any effect, where are you looking?

You are right, the external model spoiler angle is not making use of these parameters at the moment. You have to implement your Behaviour to match what's set in the flight_model.cfg

1 comment
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Sorry, to clarify, I meant there seemed to be no effect just on the external model spoiler angle.

0 Likes 0 ·
FlyingRaccoon avatar image
FlyingRaccoon answered donstim commented

Hello.

The spoiler position simvars are expressed in either percent_over_100 or position units, neither degrees nor radians.

Aircraft Simulation Variables (flightsimulator.com)

Also, I see you're changing the spoiler_limit config parameter while in flight but the doc specifies this parameter is applicable only when the aircraft is on ground.

Flight Model Config Definition (flightsimulator.com)

That said, I'm going to double check those parameters are behaving as expected.

Regards,
Sylvain

2 comments
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Thanks for the reply Sylvain. Really appreciate it.


I changed the spoiler limit parameter because that was the only one available in the default A320neo. The config definition says that the in air one defaults to the ground one if the in air one is not specified. I had first checked it out (changing both of them) in our FBW A320, but wanted to give you the example with the default one. Same seemingly nil effect when you change both of them.

0 Likes 0 ·
I was assuming that the aerodynamic effect for full spoiler deflection is given by the lift and drag increments specified in the aerodynamics section of the flight model.cfg file. I thought that these variables would be used to "normalize" the effect for different spoiler deflections (that is, if max spoiler deflection is 40 degrees, then each degree of spoiler deflection would be 1/40 of the specified lift/drag increments. I also expected the angle shown in the external view for max spoiler to be as given by these spoiler limits, but seems not to be the case. Can you clarify?
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.