Update cubesatsim.ino

pull/152/head
alanbjohnston 4 years ago committed by GitHub
parent bfebe2cccc
commit 9d02f47b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,11 +44,12 @@ void setup() {
// set all Pico GPIO pins to input // set all Pico GPIO pins to input
/*
for (int i = 6; i < 29; i++) { for (int i = 6; i < 29; i++) {
pinMode(i, INPUT); pinMode(i, INPUT);
} }
pinMode(LED_BUILTIN, OUTPUT); // Set LED pin to output pinMode(LED_BUILTIN, OUTPUT); // Set LED pin to output
*/
// detect Pi Zero using 3.3V // detect Pi Zero using 3.3V
// if Pi is present, run Payload OK software // if Pi is present, run Payload OK software
@ -73,6 +74,7 @@ void setup() {
transmit = TRUE; transmit = TRUE;
if (mode == FSK) { if (mode == FSK) {
Serial.println("Configuring for FSK\n");
bitRate = 200; bitRate = 200;
rsFrames = 1; rsFrames = 1;
payloads = 1; payloads = 1;
@ -94,6 +96,7 @@ void setup() {
// printf("\n FSK Mode, %d bits per frame, %d bits per second, %d ms per frame, %d ms sample period\n", // printf("\n FSK Mode, %d bits per frame, %d bits per second, %d ms per frame, %d ms sample period\n",
// bufLen / (samples * frameCnt), bitRate, frameTime, samplePeriod); // bufLen / (samples * frameCnt), bitRate, frameTime, samplePeriod);
} else if (mode == BPSK) { } else if (mode == BPSK) {
Serial.println("Configuring for BPSK\n");
bitRate = 1200; bitRate = 1200;
rsFrames = 3; rsFrames = 3;
payloads = 6; payloads = 6;
@ -128,6 +131,8 @@ void setup() {
} }
} else if (mode == AFSK) { } else if (mode == AFSK) {
Serial.println("Configuring for AFSK\n");
set_pin(AUDIO_OUT_PIN); set_pin(AUDIO_OUT_PIN);
char callsign[] = "W3ZM"; char callsign[] = "W3ZM";

Loading…
Cancel
Save

Powered by TurnKey Linux.