|
|
|
|
@ -342,14 +342,14 @@ int main(int argc, char * argv[]) {
|
|
|
|
|
strcat(pythonStr, busStr);
|
|
|
|
|
strcat(pythonConfigStr, pythonStr);
|
|
|
|
|
strcat(pythonConfigStr, " c");
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
// FILE* file1 = popen("python3 /home/pi/CubeSatSim/python/voltcurrent.py 1 11 c", "r");
|
|
|
|
|
FILE * file1 = popen(pythonConfigStr, "r");
|
|
|
|
|
char cmdbuffer[1000];
|
|
|
|
|
fgets(cmdbuffer, 1000, file1);
|
|
|
|
|
printf("pythonStr result: %s\n", cmdbuffer);
|
|
|
|
|
pclose(file1);
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
int pid, infd, outfd;
|
|
|
|
|
printf("Start Process Result: %d %d %d %d \n", start_subprocess(pythonConfigStr, &pid, &infd, &outfd), pid, infd, outfd);
|
|
|
|
|
/*
|
|
|
|
|
|