From 16800022d5c391e0f146128882e964927980430d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Sep 2020 08:34:40 -0400 Subject: [PATCH] reduce BPSK sleep time to reduce sample time to 3 s --- afsk/main.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 5256fce1..e13a4ff8 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -666,8 +666,10 @@ while (loop-- != 0) bufLen = (frameCnt * (syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))) * samples); // samplePeriod = ((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))))/(float)bitRate) * 1000 - 1800; - samplePeriod = 3000; - sleepTime = 3.0; +// samplePeriod = 3000; +// sleepTime = 3.0; + samplePeriod = 1000; // reduce dut to python and sensor querying delays + sleepTime = 1.0; printf("\n BPSK Mode, bufLen: %d, %d bits per frame, %d bits per second, %d seconds per frame %d ms sample period\n", bufLen, bufLen/(samples * frameCnt), bitRate, bufLen/(samples * frameCnt * bitRate), samplePeriod); @@ -1091,16 +1093,6 @@ int get_tlm_fox() { { if (firstTime != ON) -/* -{// digitalWrite (3, HIGH); - if (mode == BPSK) - sleep(3); - // sleep(3.5); -// digitalWrite (3, LOW); -} - - if (mode == FSK) -*/ { // delay for sample period digitalWrite (txLed, txLedOn);