TdmSlotTimingController class final
Minimal placeholder for TX timing preparation and TA lead mapping.
This intentionally avoids multi-loop control behavior. It only:
- tracks basic timing diagnostics from observed TX events,
- maps latest master TA sample to desired start-command lead.
The goal is a predictable baseline implementation while deeper TA control is redesigned.
Public functions
- auto desired_start_cmd_lead_us() const -> int32_t
- Returns desired negative offset between START_TX command issue time and slot target.
- void on_master_ta_feedback(int16_t timing_advance_us, uint64_t now_us)
- Applies master TA feedback sample to slowly correct desired start-command lead.
- void on_tx_timing(uint64_t tx_call_us, uint64_t slot_alarm_us, uint64_t slot_target_us, uint64_t start_tx_cmd_us)
- Updates controller with measured TX timing points from one slotted transmission.
- void reset()
- Resets controller state, adaptation gains, and accumulated diagnostics counters.
- auto tx_prep_extra_us() const -> uint32_t
- Returns additive preparation margin applied before slot alarm scheduling.