mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 23:15:14 +00:00
Adding #define constants in the RSSI average code
This commit is contained in:
parent
f66e32fbb4
commit
2ff955631f
2 changed files with 4 additions and 2 deletions
|
|
@ -136,7 +136,8 @@ bool CDMRSlotRX::processSample(q15_t sample, uint16_t rssi)
|
|||
samplesToBits(ptr, DMR_FRAME_LENGTH_SYMBOLS, frame, 8U, centre, threshold);
|
||||
|
||||
#if defined(SEND_RSSI_DATA)
|
||||
rssi_avg = avgRSSI(m_startPtr+120, 420);
|
||||
// Calculate RSSI average over a burst period. We don't take into account 2.5 ms at the beginning and 2.5 ms at the end
|
||||
rssi_avg = avgRSSI(m_startPtr + DMR_SYNC_LENGTH_SAMPLES / 2U, DMR_FRAME_LENGTH_SAMPLES - DMR_SYNC_LENGTH_SAMPLES);
|
||||
#endif
|
||||
|
||||
if (m_control == CONTROL_DATA) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue