26d5e3cbe4
--calibrate SESSION [--write]: down from two level stretches (turning round cancels the slope), forward from straight pull-aways and stops; saved to /var/lib/yukart/imu/mount.json (StateDirectory), which the service reloads on change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
23 lines
780 B
Desktop File
23 lines
780 B
Desktop File
[Unit]
|
|
Description=Yukart imu: the WT61 on a USB-UART adapter, as the car's motion on the bus
|
|
Documentation=http://pi5-16:3005/yukart/svc-core
|
|
# Tier 2. Ordered after the broker and nothing else: it finds the adapter by itself,
|
|
# whenever it appears.
|
|
After=mosquitto.service
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
User=mikkeli
|
|
# USB serial adapters belong to dialout: the one right it needs, no sudo.
|
|
SupplementaryGroups=dialout
|
|
# /var/lib/yukart/imu, owned by the service user: the measured mounting (mount.json),
|
|
# written by `yukart-imu --calibrate SESSION --write`. Until one exists, the defaults
|
|
# (module flat, Y forward) or --forward/--right apply.
|
|
StateDirectory=yukart/imu
|
|
ExecStart=/usr/local/bin/yukart-imu
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|