dkavolis / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
80 stars 32 forks source link

Added Dynamic Deflection for Control Surfaces Option #110

Closed Alioth81 closed 3 years ago

Alioth81 commented 3 years ago

Dynamic control adapts the actual deflection of a control surface based on speed and height. New tunable parameters Dynamic Deflection: Enable/Disable (this functionality= StartSpeed: up until this speed no adaption happens. From then on the control input decreases based on the selected exponent. Exponent: allows to tune the rate of decrease (e.g. exponent 2 reduces the deflection to 0.25x the original at 2x start speed MinControl: The control does not decrease lower than this value)

In addition control deflection will increase linearly based on altitude (up to the original desired deflection to ensure that the plane keep maneuverability higher up).

Additional small change: Decrease the minimal threshold of deflection. This was done to improve handling at higher speeds where a little deflection makes a big difference. This will help autopilot PID controllers as there are less "jumps" caused by the relatively high former min value

This is a video showing the changes in action https://youtu.be/ch_f8B0YRis This graph shows how the settings influence actual deflection (e.g. at 2x the selected start speed with an exponent of 2 yu will get 0.25x the deflection [this means if it had 12 degrees max deflection it will now deflect only 4 degrees] DynamicDeflection

I will create a small forum post with this as well

dkavolis commented 3 years ago

Thanks for the PR. Looks good but could you also add the remaining localization strings? They can be in English until someone else can translate them.

Alioth81 commented 3 years ago

Thanks - I made the changes you suggested and added the localizations. I was able to do the German ones and left it English in the Chinese and Russian localization

dkavolis commented 3 years ago

Thanks

jtgibson01 commented 3 years ago

This is fantastic! Can we get a binary rebuild and release to reflect this change? I was hoping to try this out after I saw the forum post -- quite possibly my biggest niggle with FAR -- but am not quite willing to build from source to do it. =)

NathanKell commented 3 years ago

Uh, isn't this exactly what DPCR under FAR flight aids does?