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";
}