Hello. I have a question or two for anyone who understands xml modding. I have recently been working on making aircraft that fly/handle as close to real world performance as possible and came across this gem (used for automatic flaps on someone’s build)
(clamp01(GearDown))+clamp01(-GearDown) * clamp01(ceil(305 - TAS)) * ((0.75 * (clamp01(ceil(-AngleOfAttack - 4)) * clamp01(ceil(103 - IAS)))) + (0.25 * (clamp01(ceil(-AngleOfAttack - 4)) * (clamp01(ceil(IAS - 103))) + ((clamp01(ceil(-AngleOfAttack - 8)) * (clamp01(ceil(103 - IAS))) + (0.5 * (clamp01(ceil(-AngleOfAttack - 8)) * (clamp01(ceil(IAS - 103))))
It’s on a Northrop F-20.
I’ve tried to apply this code to other aircrafts but obviously with different performance envelopes, the results are not great. The question is can someone point me to a source where I could better understand the coding going on here? Understanding this will fundamentally change the way I build. Thanks in advance!
@XP This is excellent! Thank you!!
Welcome to the wondeful world of Funky Trees, the SimplePlanes programming language. Here's a guide.