Jump to content
Sign in to follow this  
Guest

Scenery SDK - Navaids

Recommended Posts

Guest

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
Guest christian

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
Guest

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...