Update main.c

pull/28/head
alanbjohnston 6 years ago committed by GitHub
parent 1f28d94643
commit 04e2813782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -841,7 +841,7 @@ int get_tlm_fox() {
char cmdbuffer[1000];
FILE* transmit;
if (rpitxStatus != mode) { // change rpitx mode
rpitxSattus = mode;
rpitxStatus = mode;
printf("Changing rpitx mode!\n");
transmit = popen("ps -ef | grep rpitx | grep -v grep | awk '{print $2}' | sudo xargs kill", "r");
transmit = popen("ps -ef | grep sendiq | grep -v grep | awk '{print $2}' | sudo xargs kill", "r");
@ -849,9 +849,9 @@ int get_tlm_fox() {
if (mode == FSK) {
transmit = popen("sudo nc -l 8080 | csdr convert_i16_f | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 | sudo /home/pi/CubeSatSim/rpitx/rpitx -i- -m RF -f 434.896e3&", "r");
` } else if (mode == BPSK) {
} else if (mode == BPSK) {
transmit = popen("sudo nc -l 8080 | csdr convert_i16_f | csdr fir_interpolate_cc 2 | csdr dsb_fc | csdr bandpass_fir_fft_cc 0.002 0.06 0.01 | csdr fastagc_ff | sudo /home/pi/CubeSatSim/rpitx/sendiq -i /dev/stdin -s 96000 -f 434.8925e6 -t float 2>&1&", "r");
}
}
// fgets(cmdbuffer, 1000, transmit);
pclose(transmit);
// printf("Results of transmit command: %s\n", cmdbuffer);

Loading…
Cancel
Save

Powered by TurnKey Linux.