From 9d02f47b9a878f06fa364416bcb8eac6bdcbd76d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 3 Jul 2022 12:14:21 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 81559261..5716c253 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -44,11 +44,12 @@ void setup() { // set all Pico GPIO pins to input +/* for (int i = 6; i < 29; i++) { pinMode(i, INPUT); } pinMode(LED_BUILTIN, OUTPUT); // Set LED pin to output - +*/ // detect Pi Zero using 3.3V // if Pi is present, run Payload OK software @@ -73,6 +74,7 @@ void setup() { transmit = TRUE; if (mode == FSK) { + Serial.println("Configuring for FSK\n"); bitRate = 200; rsFrames = 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", // bufLen / (samples * frameCnt), bitRate, frameTime, samplePeriod); } else if (mode == BPSK) { + Serial.println("Configuring for BPSK\n"); bitRate = 1200; rsFrames = 3; payloads = 6; @@ -127,6 +130,8 @@ void setup() { // printf("\n"); } } else if (mode == AFSK) { + + Serial.println("Configuring for AFSK\n"); set_pin(AUDIO_OUT_PIN);