mirror of
https://github.com/pollen-robotics/microduck.git
synced 2026-11-26 04:25:46 +08:00
Each LED is written by the daemon that owns what it shows (architecture.md §3.2):
- robotd: status (gr2, from robot.health), battery gauge (gr1 + green2 + green1,
bottom to top, with hysteresis) and the flashlight (rgb).
- mediad: camera LED (cam), lit while a WebRTC peer or media.stream is live (§7).
- configd: network LED (gb), green on wifi, blue when the relay is registered.
New route robot.flashlight {on, toggle, color} (API v40), on the pad's Home
button and `robotctl flashlight`. duck_ipc_proto::led is the shared writer.
The units get /sys/devices/platform/face-leds back from ProtectKernelTunables
and switch their LEDs off in ExecStopPost.
Validated on beta board 192.168.10.130.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>