lordofwings Posted August 17, 2013 Report Posted August 17, 2013 It so happens that I also need to interpret the value of the localizer needle value to provide a display of the CDI. I noticed that the offset related to the localizer needle says it has a value between -127 to +127, a signed value. However the FSUIPC Offsets documentation says that offset is ONE byte, which means in FSUIPC .NET CLient DLL one would need to declare the offset as Offset<byte>. But.... in .NET a byte type is an UNSIGNED value, meaning whatever you put there is going to be interpreted as 0..255 and not -127 to +127.
Paul Henty Posted August 17, 2013 Report Posted August 17, 2013 You just need to declare the offset as a signed byte which is sbyte in c# or SByte in VB. e.g. Offset<sbyte> Paul 1
lordofwings Posted August 18, 2013 Author Report Posted August 18, 2013 Amazing! how did I miss that? After all these years now I feel like a fool LOL. Thanks for pointing it out.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now