Skip to content

feat(scripts): time sync of the robot, chrony and PTP for the LiDAR - #5

Merged
agus-darmawan merged 1 commit into
mainfrom
feat/time-sync
Nov 1, 2026
Merged

agus-darmawan merged 1 commit into
mainfrom
feat/time-sync

Conversation

@agus-darmawan

Copy link
Copy Markdown
Member

Every stamp on one clock, the same as Pashupati and Dharma's template (DarmawanRobotics/Dharma#8).

  • scripts/timesync.sh, also run by scripts/setup.sh install timesync ptp; both are in the default install:
    • chrony: the system clock follows TIME_SERVERS (empty: Ubuntu's pool) and serves the robot's other computers in TIME_ALLOW, e.g. the Lite3's network.
    • ptp: ptp4l runs as PTP master on the interface of the Mid-360 (the route to LIVOX_IP, or PTP_IFACE), so its points carry this computer's time. PTP is skipped while LIVOX_IP is empty.
  • Health watches the clock offset on the robot (clock.enabled in stack.yaml, off in sim.yaml).
  • molly.env.example, the README and the CHANGELOG describe the settings.

Generated by Claude Code

@agus-darmawan
agus-darmawan merged commit 7d22600 into main Nov 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant