Shutdown must not stand the robot back up, and quack opens the beak - #170
Open
sankalpsthakur wants to merge 1 commit into
Open
sankalpsthakur wants to merge 1 commit into
sankalpsthakur wants to merge 1 commit into
Conversation
apirrone
self-requested a review
August 29, 2026 08:17
This was referenced Sep 1, 2026
A sit-then-power-off went limp with this tick's snapshot still showing enabled, so the enable-driven bring-up ramped home immediately (pollen-robotics#159). Ignore robot.init for the rest of that sequence, and go Limp on the no-sit path too. robotctl quack was voice-only; the pad already opens the mouth via the triggers. Hold the beak open for a one-shot so you can tell which duck answered (pollen-robotics#153). Drop a duplicate #[cfg(test)] in chorale so clippy -D warnings passes. Assisted-by: Cursor Grok 4.6
sankalpsthakur
force-pushed
the
cursor/shutdown-sit-no-init-2926
branch
from
September 3, 2026 19:48
8be1006 to
b0b2877
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #159 and #153.
Prevent a completed shutdown from re-enabling torque through the same tick's stale enable snapshot. Ignore
robot.initwhile shutdown is in progress or power is off, skip enable-driven bring-up during that sequence and setBringup::Limpon the no-sit power-off path.robotctl quacknow holds the beak open for 450 ms, including when audio playback fails. It preserves the blocking goodbye behavior and avoids taking over while ride, theremin or chorale owns the PCM. The mouth can move while sitting but torqued.Motor-gain tuning is unchanged: policy.gain remains 200 with I/D at zero.
Also remove a duplicate
#[cfg(test)]attribute that failed strict Clippy.Test plan
cargo test -p robotd: 99 unit tests and 7 updater_gate tests passed, including shutdown/init and one-shot beak regressions.RUSTFLAGS="-D warnings" cargo clippy -p robotd --all-targetsrobotctl quackopens the beak and plays the call.The tested shutdown path has no policy and powers off immediately. The sit-with-policy path requires ONNX and remains unvalidated.
Codex assisted with this description.