Jump to content
The simFlight Network Forums

sam.white

new Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Kent, UK

sam.white's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you so much! :D I never thought to check precision values! C++ is very new to me, I have only been programming with it for around two weeks or so, and before that I was mostly doing PHP and web based programming.
  2. Thank you for your quick reply! An example of the data I am getting is this: Latitude: -31.9707 Longitude: 115.868 This code responsible for fetching the latitude and longitude is this: long long chLat; double chdlat; long long chLong; double chdLong; if (FSConnection.ReadAndProcess(0x560, 8, &chLat)) { chdlat=chLat; chdlat=chdlat*90.0/(10001750.0 * 65536.0 * 65536.0); std::ofstream lat_file( "ILat.txt", std::ios_base::out | std::ios_base::trunc); lat_file << chdlat; lat_file << "\n"; } if (FSConnection.ReadAndProcess(0x568, 8, &chLong)) { chdLong=chLong; chdLong=chdLong*360.0/(65536.0 * 65536.0 * 65536.0 * 65536.0); std::ofstream long_file( "ILong.txt", std::ios_base::out | std::ios_base::trunc); long_file << chdLong; long_file << "\n"; }
  3. Hello, Is it possible to get more accurate latitude and longitude data from FSX than 3-4 decimal places after conversion into decimal degrees? Currently I am fetching the data using a long long variable type, then converting it into a double before carrying out the conversion. Am I doing something wrong here with my variable types? The result of this is a three decimal place number for longitude and a four decimal place number for latitude (both numbers have a total of 6 digits each). Would I get more accurate results if I used SimConnect instead of FSUIPC? I am using C++ to do this. Thank you for any help in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.