ARK-Electronics / ark_companion_scripts

deprecated, see https://github.com/ARK-Electronics/ARK-OS
MIT License
7 stars 4 forks source link

Fix timesync service #4

Closed dakejahl closed 1 year ago

dakejahl commented 1 year ago

The px4-time.service was running before the system time has been synced. I added the dependency time-sync.target as well as enabled the systemd-time-wait-sync.service from the setup.sh

Right now this service just gets the time close enough (2 seconds off) so that the logs are properly timestamped. In the future I will add TIMESYNC mavlink service https://mavlink.io/en/services/timesync.html