added FSK second per frame

pull/107/head
alanbjohnston 5 years ago committed by GitHub
parent f75a97d2e6
commit dd73df2ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -581,8 +581,8 @@ int main(int argc, char * argv[]) {
samplePeriod = (int) (((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen)))) / (float) bitRate) * 1000 - 500); samplePeriod = (int) (((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen)))) / (float) bitRate) * 1000 - 500);
sleepTime = 0.1f; sleepTime = 0.1f;
printf("\n FSK Mode, %d bits per frame, %d bits per second, %d ms sample period\n", printf("\n FSK Mode, %d bits per frame, %d bits per second, %f seconds per frame, %d ms sample period\n",
bufLen / (samples * frameCnt), bitRate, samplePeriod); bufLen / (samples * frameCnt), bitRate, (float)((float)bufLen / (samples * frameCnt * bitRate)), samplePeriod);
} else if (mode == BPSK) { } else if (mode == BPSK) {
bitRate = 1200; bitRate = 1200;
rsFrames = 3; rsFrames = 3;

Loading…
Cancel
Save

Powered by TurnKey Linux.