October 23, 200223 yr 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
October 23, 200223 yr 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
October 23, 200223 yr 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
Create an account or sign in to comment