dave hoeffgen
Resource contributor
- Messages
- 1,439
- Country

Hello,
I'm trying to code a pfd's maximum speed bar to follow the flap angle. Therefore I took the values from the kneeboard and interpolated between them.
This is an excerpt of the code:
before adding the interpolation the bar showed OK despite it jumped step by step.
after adding the interpolation it did not move anymore.
Did I do anything wrong with the custom variable's (L:max current flap pos) format or unit?
It is a copy of the major flap angle (in case left and right are different, e.g. when failed) converted to degrees. It worked well for the condition but not for the output value.
Thanks in advance for any help.
Dave
I'm trying to code a pfd's maximum speed bar to follow the flap angle. Therefore I took the values from the kneeboard and interpolated between them.
This is an excerpt of the code:
Code:
(L:max current flap pos) 20 >= if{ 230 (L:max current flap pos) 4.5 * - (A:Airspeed select indicated or true, knots) - 10 - }
(L:max current flap pos) 30 >= if{ 185 (L:max current flap pos) 1 * - (A:Airspeed select indicated or true, knots) - 10 - }
before adding the interpolation the bar showed OK despite it jumped step by step.
after adding the interpolation it did not move anymore.
Did I do anything wrong with the custom variable's (L:max current flap pos) format or unit?
It is a copy of the major flap angle (in case left and right are different, e.g. when failed) converted to degrees. It worked well for the condition but not for the output value.
Thanks in advance for any help.
Dave