I'm attempting to program a simple variable intake ramp and my <Code> section is this:
What this does is convert Mach to a keyframe [(Mach x 100) - 150] and then add the sideslip shadowing angle multiplied by a number in order to convert it to keyframes [(Beta-6.5) x 7.1429]
Then the two values are subtracted.
The animation doesn't play at all and I had the same problem with another gauge, trying to add acceleration keyframes to fuel quantity keyframes.
So, am I trying to add apples to watermelons, or is it just a syntax error?
Code:
(conditions) if{ (A:AIRSPEED MACH, Mach) 100 * 150 - (A:INCIDENCE BETA, degrees) 6.5 - 7.1429 * - } else{ (A:AIRSPEED MACH, Mach) 100 * 150 - }
What this does is convert Mach to a keyframe [(Mach x 100) - 150] and then add the sideslip shadowing angle multiplied by a number in order to convert it to keyframes [(Beta-6.5) x 7.1429]
Then the two values are subtracted.
Code:
For example, at Mach 2.5 it should give kf100 :(2.5 x 100) - 150=100
At a sideslip angle of 8.5deg, the result of the conversion should be (8.5-6.5) x 7.1429 = 14.2858.
The end result should be 100-14.2858 ~ 86.
The animation doesn't play at all and I had the same problem with another gauge, trying to add acceleration keyframes to fuel quantity keyframes.
So, am I trying to add apples to watermelons, or is it just a syntax error?
Last edited:

