lordofwings Posted August 17, 2013 Report Share 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. Link to comment Share on other sites More sharing options...
Paul Henty Posted August 17, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
lordofwings Posted August 18, 2013 Author Report Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now