added lat long rand if no gps

pull/144/head
alanbjohnston 4 years ago committed by GitHub
parent d17f0cf055
commit 98a76c8222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -933,6 +933,9 @@ void get_tlm(void) {
latitude = toAprsFormat(lat_gps); latitude = toAprsFormat(lat_gps);
longitude = toAprsFormat(lon_gps); longitude = toAprsFormat(lon_gps);
// sprintf(gps_str, "%7.4f %7.4f %7.1f", lat_gps, lon_gps, alt_gps); // sprintf(gps_str, "%7.4f %7.4f %7.1f", lat_gps, lon_gps, alt_gps);
} else {
latitude += rnd_float(-0.0005, 0.0005)
longitude += rnd_float(-0.0005, 0.0005)
} }
sprintf(gps_str, "%7.4f %7.4f %7.1f", toAprsFormat(lat_gps), toAprsFormat(lon_gps), alt_gps); sprintf(gps_str, "%7.4f %7.4f %7.1f", toAprsFormat(lat_gps), toAprsFormat(lon_gps), alt_gps);

Loading…
Cancel
Save

Powered by TurnKey Linux.