Commit Graph

3 Commits

Author SHA1 Message Date
Claude
ea59bb0e27 feat(02-04): implement ChoreographyScheduler with absolute monotonic clock dispatch
- Absolute monotonic timestamp scheduling (D-07): fire_at = start_time + pause_offset + event.timestamp
- 5ms poll interval keeps asyncio loop responsive
- pause() records paused_at; resume() accumulates pause_offset (D-09)
- seek() restarts dispatch loop skipping events before seek position
- _dispatch() builds {zone, animation, params} dict without v:1 (transport responsibility)
- CHR-05 fulfilled: drift < 20ms validated by tests
2026-04-03 14:50:57 +02:00
Claude
6b507e9605 feat(02-01): implement ChoreoEvent and ChoreoFile Pydantic v2 models
- ChoreoEvent: validated zone (schrank/wand/all), animation (8 names), timestamp (>= 0)
- ChoreoFile: save/load .choreo.json roundtrip, events always sorted by timestamp
- add_event() inserts and re-sorts by timestamp (D-02)
- Exports VALID_ZONES and VALID_ANIMATIONS constants
- 17 tests pass: validators, roundtrip, sorting, constants
2026-04-03 14:22:41 +02:00
Claude
378620e0bb feat(02-02): implement ESP32Transport UDP client with asyncio DatagramProtocol
- ESP32Transport.send_command() injects v:1, fire-and-forget, silent drop if not ready
- 512-byte payload limit enforced with warning log
- datagram_received() parses STATUS ok → connected=True, stores last_status
- on_status callback support for status update notifications
- connection_lost() sets connected=False, clears transport ref
- create_esp32_transport() async factory sends initial STATUS ping (D-12)
- All protocol behaviors match docs/protocol.md exactly (D-10, D-11, D-12, D-14)
- Add pytest-asyncio to dev deps + asyncio_mode=auto for test suite
2026-04-03 14:19:20 +02:00