Profile image

Input for control surfaces?

1,732 Ohmyus  4.6 years ago

I'm learning Funky Trees, and I am programming the flaps of my plane to deploy when it's below 200m Agl and moving slower than 90 m/s, but these flaps are also the ailerons, so even when deployed they should move accordingly to the roll input. Finally, this code is for the actual control surfaces of the wing and not for a rotator, so maybe there's the problem. The code that I've written is this:
(TAS < 90 & AltitudeAGL < 200) ? Roll + 0.5 : Roll
I know something's wrong, but I don't know what. Can someone please help me?