Update main.c run command instead of service

beta-ccd
Alan Johnston 1 year ago committed by GitHub
parent 94b89732c6
commit e65abb31fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -538,7 +538,11 @@ int main(int argc, char * argv[]) {
other_max[i] = -1000.0;
}
FILE * command_start = popen("sudo systemctl start command", "r");
FILE * command_kill = popen("sudo killall -9 command", "r");
pclose(command_kill);
// FILE * command_start = popen("sudo systemctl start command", "r");
FILE * command_start = popen("/home/pi/CubeSatSim/command &", "r");
pclose(command_start);
long int loopTime;

Loading…
Cancel
Save

Powered by TurnKey Linux.