Update main.c change default mode to BPSK

release
Alan Johnston 1 year ago committed by GitHub
parent 7a1b8174ce
commit 2ce936ec87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -174,22 +174,22 @@ int main(int argc, char * argv[]) {
// 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 = BPSK;
frameCnt = 1; frameCnt = 1;
if (argc > 1) { if (argc > 1) {
// strcpy(src_addr, argv[1]); // strcpy(src_addr, argv[1]);
if ( * argv[1] == 'b') { if ( * argv[1] == 'b') {
mode = BPSK; mode = BPSK;
printf("Mode BPSK\n"); printf("Mode is BPSK\n");
} else if ( * argv[1] == 'a') { } else if ( * argv[1] == 'a') {
mode = AFSK; mode = AFSK;
printf("Mode AFSK\n"); printf("Mode is AFSK\n");
} else if ( * argv[1] == 'm') { } else if ( * argv[1] == 'm') {
mode = CW; mode = CW;
printf("Mode CW\n"); printf("Mode is CW\n");
} else { } else {
printf("Mode FSK\n"); printf("Mode is BPSK\n");
} }
if (argc > 2) { if (argc > 2) {
@ -214,9 +214,9 @@ int main(int argc, char * argv[]) {
fclose(mode_file); fclose(mode_file);
printf("Mode file /home/pi/CubeSatSim/.mode contains %c\n", mode_string); printf("Mode file /home/pi/CubeSatSim/.mode contains %c\n", mode_string);
if ( mode_string == 'b') { if ( mode_string == 'f') {
mode = BPSK; mode = FSK;
printf("Mode is BPSK\n"); printf("Mode is FSK\n");
} else if ( mode_string == 'a') { } else if ( mode_string == 'a') {
mode = AFSK; mode = AFSK;
printf("Mode is AFSK\n"); printf("Mode is AFSK\n");
@ -233,7 +233,7 @@ int main(int argc, char * argv[]) {
mode = TXCOMMAND; mode = TXCOMMAND;
printf("Mode is Transmit Command\n"); printf("Mode is Transmit Command\n");
} else { } else {
printf("Mode is FSK\n"); printf("Mode is BPSK\n");
} }
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.