From ad74215404ddbe4a2e83914ffbcf9ef3d0aaa414 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 15 Apr 2023 08:59:19 -0400 Subject: [PATCH] print in aprs format --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index ab6b80f5..00ff3416 100644 --- a/main.c +++ b/main.c @@ -766,7 +766,8 @@ int main(int argc, char * argv[]) { if ((millis() - newGpsTime) > 60000) { longitude += rnd_float(-0.005, 0.005); // was .05 latitude += rnd_float(-0.005, 0.005); - printf("GPS Location with Rnd: %f, %f \n", latitude, longitude); + printf("GPS Location with Rnd: %f, %f \n", latitude, longitude); + printf("GPS Location with Rnd: APRS %7.2f, %08.2f \n", toAprsFormat(latitude), toAprsFormat(longitude)); newGpsTime = millis(); } @@ -969,7 +970,7 @@ void get_tlm(void) { if (latitude > 0) sprintf(header_lat, "%7.2f%c", toAprsFormat(latitude), 'N'); // lat else - sprintf(header_lat, "%7.2f%c", latitude * (-1.0), 'S'); // lat + sprintf(header_lat, "%7.2f%c", toAprsFormat(latitude) * (-1.0), 'S'); // lat if (longitude > 0) sprintf(header_long, "%08.2f%c", toAprsFormat(longitude) , 'E'); // long else