Update telem.c

pull/55/head
alanbjohnston 6 years ago committed by GitHub
parent 32dcfc5548
commit 4a54977194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -334,15 +334,16 @@ int main(int argc, char *argv[]) {
char cmdbuffer[1000];
fgets(cmdbuffer, 1000, file);
printf("result: %s\n", cmdbuffer);
pclose(file);
data.voltage = atof(cmdbuffer);
// data.voltage = atof(cmdbuffer);
int count;
// for (count = 0; count < 8; count++)
{
file = popen("python3 /home/pi/CubeSatSim/python/voltcurrent.py 1 3 c", "r");
char cmdbuffer[1000];
// char cmdbuffer[1000];
fgets(cmdbuffer, 1000, file);
printf("result: %s\n", cmdbuffer);
pclose(file);

Loading…
Cancel
Save

Powered by TurnKey Linux.