fix default and recalled lat lon

sr-frs-aprs-payload-minute
alanbjohnston 3 years ago committed by GitHub
parent 48352c150b
commit 58b32d23fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -150,12 +150,18 @@ int main(int argc, char * argv[]) {
if ((fabs(lat_file) > 0) && (fabs(lat_file) < 90.0) && (fabs(long_file) > 0) && (fabs(long_file) < 180.0)) {
printf("Valid latitude and longitude in config file\n");
// convert to APRS DDMM.MM format
latitude = toAprsFormat(lat_file);
longitude = toAprsFormat(long_file);
printf("Lat/Long in APRS DDMM.MM format: %f/%f\n", latitude, longitude);
// latitude = toAprsFormat(lat_file);
// longitude = toAprsFormat(long_file);
latitude = lat_file;
longitude = long_file;
printf("Lat/Long %f %f\n", latitude, longitude);
printf("Lat/Long in APRS DDMM.MM format: %f/%f\n", toAprsFormat(latitude), toAprsFormat(longitude));
newGpsTime = millis();
} else { // set default
latitude = toAprsFormat(latitude);
longitude = toAprsFormat(longitude);
// latitude = toAprsFormat(latitude);
// longitude = toAprsFormat(longitude);
newGpsTime = millis();
}
if (strcmp(sim_yes, "yes") == 0)

Loading…
Cancel
Save

Powered by TurnKey Linux.