b673b0f507
feat: add PTP integration tests for LTC timecode synchronization
...
This commit adds comprehensive test coverage for the PTP and LTC timecode synchronization logic, including:
- PTP client initialization tests
- PTP disabled state handling
- LTC to PTP time conversion
- Frame timing precision
- Offset tracking and jitter calculation
- Interface change handling
The tests validate key aspects of the synchronization process, ensuring accurate timecode conversion, offset tracking, and client behavior under different configurations.
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 19:00:58 +01:00
7b4deb1cf8
refactor: restructure PTP client to use thread-safe runtime and RNG
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:54:20 +01:00
d6ca055170
refactor: resolve multiple mutable borrow conflicts in PTP event loop
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:47:41 +01:00
85cd0cc7db
refactor: simplify PTP event handling to resolve borrow checker conflicts
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:37:38 +01:00
9aa5d00ee1
refactor: resolve borrowing issues in PTP module
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:24:21 +01:00
6454d5f5ce
refactor: resolve multiple mutable borrow issues in PTP session handling
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:14:00 +01:00
626d282022
fix: convert system time to u64 for Time::from_nanos in PTP module
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:08:56 +01:00
59c61a8976
fix: update statime API method calls with correct signatures
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:03:12 +01:00
b2aa3c3d07
refactor: update statime Port API method calls for timer and message handling
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 18:00:01 +01:00
ac553146a1
fix: resolve PTP module compilation errors and simplify socket handling
...
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
2025-07-10 17:55:46 +01:00
b862e8d307
fix: Update PTP socket and clock init for statime-linux API
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 17:50:58 +01:00
277701a87f
fix: Update statime-linux imports and clock usage
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 17:42:47 +01:00
66471270d0
fix: Fix statime-linux imports and clock instantiation
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 17:26:36 +01:00
3b168c8033
fix: Correct import paths for statime-linux types
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 17:22:25 +01:00
846fad078b
fix: Fix imports, config, and action handling
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 17:18:12 +01:00
b11c66016f
fix: Adapt PTP code to statime API changes
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 17:06:03 +01:00
eba5b450bb
fix: Adapt to statime v0.4.0 API changes
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 16:59:59 +01:00
7cd86ad9f4
refactor: Update PTP setup to match statime API changes
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 16:53:04 +01:00
59570ecdcb
fix: Update statime API usage to fix build errors
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 16:45:41 +01:00
73d8634c23
refactor: Adapt PTP client to new statime API structure
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 16:40:00 +01:00
78ea1aefed
feat: Integrate statime for PTP time sync
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 16:33:47 +01:00
18b71c6fa6
fix: Prevent time sync check on FREE frames
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 14:28:17 +01:00
fe8e1fc5a9
test: Add unit tests for LTC sync logic
...
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-10 14:03:39 +01:00
Chris Frankland-Wright
bd2111d77a
Rust ported and tested version
2025-07-09 01:18:49 +01:00
Chris Frankland-Wright
138b1e07a8
initial push of Rust version
2025-07-08 20:57:15 +01:00