Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
The relay keeps the arm's first /servo-params read as the factory baseline under FORGE_APP_DATA, owner-only at GET /servo-params/factory #459
Sign in to join this conversation.
Replaces #444. That one was parked twice because a builder cannot reach the real arm. This version keeps the baseline in the app, so the real values are recorded on production by itself, with no one copying them by hand.
Done:
GET /servo-paramsonce. If every servo answered, it writes{ recordedAt, armRun, servos }atomically toservo-factory.jsonunder FORGE_APP_DATA. It never overwrites that file, and a partial read (any servo witherror) is not saved and is retried on the next connect.GET /servo-params/factoryon the relay returns that file to the owner, and 404 when none is recorded yet. Anyone else gets 404, the same as the rest of /admin.bun --cwd Software/so101 testpasses.Files: Software/so101/src/relay.ts (or a small src/servo-baseline.ts it calls), its test, and Software/README.md. Risk: the read shares the Pi link with driving. Do it only while nobody holds a turn, and give up quietly when someone does.