Browse Source

evalTxChanQuality(), Antw.Bulk besser bewerten

pull/1080/head
no name 2 years ago
parent
commit
0eb228e9bf
  1. 23
      src/hm/hmInverter.h

23
src/hm/hmInverter.h

@ -711,15 +711,20 @@ class Inverter {
} }
} else if (!Retransmits || isNewTxChan()) { } else if (!Retransmits || isNewTxChan()) {
// no complete receive for this send channel // no complete receive for this send channel
if (mTestTxChanIndex == RF_TX_TEST_CHAN_1ST_USE) { if (rxFragments - lastRxFragments > 2) {
// we want _QUALITY_OK at least: switch back to orig quality // graceful evaluation for big inverters that have to send 4 answer packets
mTxChanQuality[mBestTxChanIndex] = mSaveOldTestChanQuality; addTxChanQuality (RF_TX_CHAN_QUALITY_OK);
} } else if (rxFragments - lastRxFragments < 2) {
addTxChanQuality (RF_TX_CHAN_QUALITY_LOW); if (mTestTxChanIndex == RF_TX_TEST_CHAN_1ST_USE) {
if (mTestPeriodFailCnt < 0xff) { // we want _QUALITY_OK at least: switch back to orig quality
mTestPeriodFailCnt++; mTxChanQuality[mBestTxChanIndex] = mSaveOldTestChanQuality;
} }
} addTxChanQuality (RF_TX_CHAN_QUALITY_LOW);
if (mTestPeriodFailCnt < 0xff) {
mTestPeriodFailCnt++;
}
} // else: _QUALITY_NEUTRAL, keep any test channel
} // else: dont overestimate burst distortion
if (mTestTxChanIndex == RF_TX_TEST_CHAN_1ST_USE) { if (mTestTxChanIndex == RF_TX_TEST_CHAN_1ST_USE) {
// special evaluation of test channel only at the beginning of current test period // special evaluation of test channel only at the beginning of current test period
mTestTxChanIndex = mBestTxChanIndex; mTestTxChanIndex = mBestTxChanIndex;

Loading…
Cancel
Save