From 18dd0df2257902b748f1f848cc780777013b3bdb Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 17 Sep 2022 14:02:38 -0400 Subject: [PATCH] fixed FSK bit in other place --- cubesatsim/cubesatsim.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index c0af84ba..ffe3fff1 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -1316,16 +1316,16 @@ void get_tlm_fox() { // ctr/SAMPLES, i, frames, symbol, val, bit, (data > 0) ); // Serial.print(data, BIN); // Debugging print!!! // Serial.print(" "); -/// if (mode == FSK) { -/// phase = ((data != 0) * 2) - 1; + if (mode == FSK) { + phase = ((data != 0) * 2) - 1; // Serial.printf("Sending a %d\n", phase); -/// } else { + } else { if (data == 0) { phase *= -1; // if ((ctr - smaller) > 0) { // for (int j = 1; j <= smaller; j++) // buffer[ctr - j] = buffer[ctr - j] * 0.4; -// } + } // flip_ctr = ctr; } /// }