From 98fa3fcf7b93f65efb9a8c89a61a8e6764ee91f4 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 7 Jul 2022 09:51:25 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index bff2796a..dd529423 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -135,15 +135,17 @@ void loop() { // read_payload(); // encode as digits (APRS or CW mode) or binary (DUV FSK) - if ((mode == BPSK) || (mode == FSK)) { + if ((mode == BPSK) || (mode == FSK)) + { get_tlm_fox(); - while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100 - sleep(0.1); // 25); // 0.5); // 25); - sampleTime = (unsigned int) millis(); } else if (mode == AFSK) send_packet(); + while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100 + sleep(0.1); // 25); // 0.5); // 25); + sampleTime = (unsigned int) millis(); + // delay(2000); // test_radio();