|
|
|
@ -50,7 +50,8 @@ int main(int argc, char * argv[]) {
|
|
|
|
program_radio();
|
|
|
|
program_radio();
|
|
|
|
|
|
|
|
|
|
|
|
// FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r");
|
|
|
|
// FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r");
|
|
|
|
//pclose(rpitx_stop);
|
|
|
|
FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
|
|
|
|
pclose(rpitx_stop);
|
|
|
|
|
|
|
|
|
|
|
|
// FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r");
|
|
|
|
// FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r");
|
|
|
|
// pclose(file_deletes);
|
|
|
|
// pclose(file_deletes);
|
|
|
|
@ -70,8 +71,8 @@ int main(int argc, char * argv[]) {
|
|
|
|
Serial.println("HAB mode enabled - balloon icon and BAT only telem and no low voltage shutdown");
|
|
|
|
Serial.println("HAB mode enabled - balloon icon and BAT only telem and no low voltage shutdown");
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
// FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r");
|
|
|
|
pclose(rpitx_restart);
|
|
|
|
// pclose(rpitx_restart);
|
|
|
|
|
|
|
|
|
|
|
|
mode = FSK;
|
|
|
|
mode = FSK;
|
|
|
|
frameCnt = 1;
|
|
|
|
frameCnt = 1;
|
|
|
|
|