n4gix
Resource contributor
- Messages
- 11,674
- Country

The ADI on the T-38A has a bank steering bar* that provides a visual cue on which direction to steer the a/c for an intercept.
When in TACAN Mode and the Normal/Manual switch is in Manual position, the bank steering bar is visible and will provide a cue to steer based on the heading bug's position.
The bank steering range limits are +/- 35º
*Note: the bank steering bar looks like a yellow, vertical needle like one that's used for a flight director.
The 3d "bank steering bar" is keyframe animated from frame 0 to frame 254, so the center point is frame 127.
Here is the animation script for the bank steering bar for this specific mode:
It works quite well until the heading bug is set within the range of +/- 20º due North, when suddenly the computed (L:HdgError,enum) value goes "wonky" as a result of the wierd way that FSX "does the math"...
Has anyone any suggestions on how to modify the formula to "unwonky" the computed heading error value?
When in TACAN Mode and the Normal/Manual switch is in Manual position, the bank steering bar is visible and will provide a cue to steer based on the heading bug's position.
The bank steering range limits are +/- 35º
*Note: the bank steering bar looks like a yellow, vertical needle like one that's used for a flight director.
The 3d "bank steering bar" is keyframe animated from frame 0 to frame 254, so the center point is frame 127.
Here is the animation script for the bank steering bar for this specific mode:
Code:
(L:T38_HSI_NormMan_Switch,bool)
(L:T38_HSI_SourceSwitch,enum) 0 == and
if{
25 (>L:T38_FD_VerticalBar,enum) <!-[COLOR="Red"]- Unhides bank steering bar -->[/COLOR]
(A:PLANE HEADING DEGREES GYRO,degrees) (A:AUTOPILOT HEADING LOCK DIR, degrees) - 180 + (>L:HdgError,enum)
180 (L:HdgError,enum) - 35 <=
180 (L:HdgError,enum) - -35 >= and
if{ 180 (L:HdgError,enum) - 3.6285714 * 127 + (>L:Attitude_Bank_Steering,enum) }
}
It works quite well until the heading bug is set within the range of +/- 20º due North, when suddenly the computed (L:HdgError,enum) value goes "wonky" as a result of the wierd way that FSX "does the math"...
Has anyone any suggestions on how to modify the formula to "unwonky" the computed heading error value?
