Sign in to follow this  
Guest

Scenery SDK - Navaids

Recommended Posts

I am playing with reading navaid BGL's via the FS2000 SDK. I have pretty well got them out, however I am wondering about the significance of breaking the lat and long values into "lathi/latlo", more importantly, what info is the hi-8 bits of lathi (and lonhi) giving? ThanksDave

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

No significance really.Usually data is done as 1 (char), 2 (short int), or 4 (int) bytes. the hi/lo is nothing else than 3 bytes, 2 bytes (short int) for low, 1 (char) for high. hence lathi * 2^16 + latlo = lat.Why didn't M$ use 4 bytes? To save space and keep data transmissions low...Cheers, Christian

Share this post


Link to post
Share on other sites

Ah, thanks Christian.I was losing a little precision using latlo and thought it has something to do with lathi. Now it makes sense.Thank you

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this