January 17, 201016 yr Here's the variable I'm working on. It returns the current heading just fine, but what I'd like is for it to always return the reciprocal heading. For example, if I'm flying a heading of 90, I would like this gauge to show me "270", the reciprocal. Here's my current string from the gauge element in question:%((A:PLANE HEADING DEGREES GYRO,degrees))%!03d!Any ideas are welcome. Thanks.
January 17, 201016 yr Commercial Member Add 180, then the string becomes:%((A:PLANE HEADING DEGREES GYRO,degrees) abs 180 +)%!03d!The ABS is to make sure that an absolute value is given. Good Day, Engjell Berisha
January 18, 201016 yr Add 180, then the string becomes:%((A:PLANE HEADING DEGREES GYRO,degrees) abs 180 +)%!03d!The ABS is to make sure that an absolute value is given.Remember to normalize it too.. HDG 350 + 180 = 530 normalize will make it 170%((A:PLANE HEADING DEGREES GYRO,degrees) abs 180 + dnor)%!03d!Roman FS RTWR SHRS F-111 JoinFS Little Navmap
Create an account or sign in to comment