imu: raw samples on yukart/raw/imu, recorded as imu.ndjson; calibration from a session
/ crosscheck (push) Successful in 1s
Rust (L4T) / Clippy, test, build, glibc (push) Successful in 15s

--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
This commit is contained in:
2026-10-14 13:28:40 +09:00
parent e350245e17
commit 26d5e3cbe4
8 changed files with 429 additions and 20 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ StartLimitIntervalSec=0
User=mikkeli
# USB serial adapters belong to dialout: the one right it needs, no sudo.
SupplementaryGroups=dialout
# Mounting: add --forward AXIS --right AXIS once the module has its place in the car.
# /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