Update main.c Pi Zero 2 50 for BPSK

beta-drop
Alan Johnston 2 years ago committed by GitHub
parent 78ff8c9fe3
commit 3ac9552ff4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,7 +41,7 @@ int main(int argc, char * argv[]) {
sleep(5); // try sleep at start to help boot
// voltageThreshold = 3.7;
printf("Pi Zero 2 detected\n");
delta = 0; // 100; // reduced delta time for Pi Zero 2
delta = 50; // 100; // reduced delta time for Pi Zero 2
} else {
delta = 350; // 150; // 400; // 350; // 200; // 100; // delta time for Pi Zero
}
@ -526,7 +526,7 @@ int main(int argc, char * argv[]) {
//samplePeriod = 2200; // reduce dut to python and sensor querying delays
sleepTime = 2.2f;
frameTime = ((float)((float)bufLen / (samples * frameCnt * bitRate))) * 1000; // no - delta; // frame time in ms
frameTime = ((float)((float)bufLen / (samples * frameCnt * bitRate))) * 1000 - delta; // frame time in ms
printf("\n BPSK Mode, bufLen: %d, %d bits per frame, %d bits per second, %d ms per frame %d ms sample period\n",
bufLen, bufLen / (samples * frameCnt), bitRate, frameTime, samplePeriod);

Loading…
Cancel
Save

Powered by TurnKey Linux.