|
|
|
@ -1270,11 +1270,14 @@ void get_tlm(void) {
|
|
|
|
strcat(str, cw_footer3);
|
|
|
|
strcat(str, cw_footer3);
|
|
|
|
// printf("Str: %s \n", str);
|
|
|
|
// printf("Str: %s \n", str);
|
|
|
|
// fflush(stdout);
|
|
|
|
// fflush(stdout);
|
|
|
|
printf("CW string to execute: %s\n", cwready);
|
|
|
|
printf("CW string to execute: %s\n", str);
|
|
|
|
fflush(stdout);
|
|
|
|
fflush(stdout);
|
|
|
|
|
|
|
|
|
|
|
|
FILE * cw_file = popen(cwready, "r");
|
|
|
|
FILE * cw_file = popen(str, "r");
|
|
|
|
pclose(cw_file);
|
|
|
|
pclose(cw_file);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FILE * cw_file = popen(cwready, "r");
|
|
|
|
|
|
|
|
// pclose(cw_file);
|
|
|
|
|
|
|
|
|
|
|
|
while ((cw_file = fopen("/home/pi/CubeSatSim/cwready", "r")) != NULL) { // wait for rpitx to be done
|
|
|
|
while ((cw_file = fopen("/home/pi/CubeSatSim/cwready", "r")) != NULL) { // wait for rpitx to be done
|
|
|
|
fclose(cw_file);
|
|
|
|
fclose(cw_file);
|
|
|
|
|