Browse Source
After adding the SFO drift (4.25 * sfo_hat) to the fractional STO, the value was wrapped back into [-0.5, 0.5] but the removed whole chip was discarded, misaligning subsequent symbols by m_osFactor samples. This mostly bites at high SF with clock drift, where the drift term can reach ~0.3+ chips. - Fold the wrapped chip(s) into the returned FIFO advance (-chips * os). - Wrap via loRaRound() (half away from zero), so |sto_frac| >= 0.5 now wraps; previously exactly 0.5 did not. Equivalent timing either way. - Reset non-finite STO before rounding (float->int cast of NaN/inf is UB). - Log when the FIFO advance is clamped to 1.chirpmodem-v8.0.0
1 changed files with 31 additions and 3 deletions
Loading…
Reference in new issue