add GPS to telem str and APRS coords

bp-new
alanbjohnston 5 years ago committed by GitHub
parent 1b10b76656
commit 857dffb8d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -909,6 +909,9 @@ void get_tlm(void) {
printf("GPS Data: %f, %f, %f \n", lat_gps, lon_gps, alt_gps); printf("GPS Data: %f, %f, %f \n", lat_gps, lon_gps, alt_gps);
pclose(file_gps); pclose(file_gps);
latitude = lat_gps;
longitude = lon_gps;
// printf("Str: %s \n", str); // printf("Str: %s \n", str);
if (mode != CW) { if (mode != CW) {
// sprintf(header_str2b, "=%7.2f%c%c%c%08.2f%cShi hi ",4003.79,'N',0x5c,0x5c,07534.33,'W'); // add APRS lat and long // sprintf(header_str2b, "=%7.2f%c%c%c%08.2f%cShi hi ",4003.79,'N',0x5c,0x5c,07534.33,'W'); // add APRS lat and long
@ -1038,6 +1041,8 @@ void get_tlm(void) {
} else { // APRS using rpitx } else { // APRS using rpitx
strcat(str, resBuffer); // add GPS data to the end
strcat(str, footer_str1); strcat(str, footer_str1);
strcat(str, call); strcat(str, call);
strcat(str, footer_str); strcat(str, footer_str);

Loading…
Cancel
Save

Powered by TurnKey Linux.