try bufLen 5751

pull/168/head
alanbjohnston 3 years ago committed by GitHub
parent 9ac3fc7869
commit e2eccec3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -238,7 +238,8 @@ void config_telem() {
// samples = S_RATE / bitRate;
samples = sample_rate / bitRate;
Serial.println(samples);
bufLen = (frameCnt * (syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))) * samples); // * 2; // 2 *
// bufLen = (frameCnt * (syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))) * samples); // * 2; // 2 *
bufLen = 5751; // instead of 5841
Serial.println(bufLen);
// samplePeriod = ((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))))/(float)bitRate) * 1000 - 500;
samplePeriod = ((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen))))/(float)bitRate) * 1000; // - 500;

Loading…
Cancel
Save

Powered by TurnKey Linux.