16 lines
722 B
Python
16 lines
722 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.signalsim
|
|
def test_signalsim_e1b_raw_symbols_contain_periodic_inav_sync(signalsim_validation_result) -> None:
|
|
report, _, _ = signalsim_validation_result
|
|
symbols = report["e1b_symbols"]
|
|
assert symbols["recovered_symbols"] >= 450
|
|
assert symbols["comparison_scope"] == "known_10_symbol_INAV_sync_words_only"
|
|
assert symbols["symbol_errors"] == 0
|
|
assert symbols["frame_or_page_sync"]
|
|
indices = [match["symbol_index"] for match in symbols["sync_matches"]]
|
|
# I/NAV even and odd parts each begin with sync, 250 symbols (1 s) apart.
|
|
assert any(right - left == 250 for left, right in zip(indices, indices[1:]))
|
|
assert symbols["fec_decoding"] == "not_implemented"
|