Commit Graph
754 Commits
Author SHA1 Message Date
apirroneandClaude Opus 5.5 843a2340d8 nfc: read a tag on request — robotctl nfc-read, duckctl nfc-read
`nfc.read` on nfcd's socket reads the next tag touched, or one already on
the reader, and answers with its UID and NDEF text/URI records. It waits,
quacks and keeps the tag from being acted on just as a write does, so a
pairing or mode tag can be checked without it pairing or switching. A tag
that moves mid-read is read again on the next poll until the wait runs out.

API_VERSION 61: a v60 nfcd answers nfc.read METHOD_NOT_FOUND, by name.
btd carries it; mediad does not. every_call() gains NfcWrite, which it was
missing, and NfcRead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:40:37 +01:00
Pollen-CocoandClaude Opus 5.5 611c25483a soccer: a quack as the robot starts playing by itself, two as it stops
robotd says it on the switch's edge, so the pad's D-pad down, robotctl
soccer and autod's ball games all sound the same. The second quack of
the pair waits 350 ms: a sound cuts off the one before it, so two in
one tick would be heard as one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:27:19 +08:00
apirrone b76a8a5b20 Merge remote-tracking branch 'origin/main' into nfc-mode-tags
# Conflicts:
#	pad-map/src/mapper.rs
2026-11-13 14:03:57 +01:00
apirroneandClaude Opus 5.5 837f1d6731 robotd: out of stand-up retries, park at home until stood on its feet
Instead of handing a stuck robot back to the policy after the last retry,
ramp it to the home pose and hold it there stiff with the policy off. Once
it has been upright and still for limp_fall_standup_resume_ms (1 s) —
somebody stood it on its feet and let go — the policy takes it back.
Start twice still ends the park.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:52:21 +01:00
apirroneandClaude Opus 5.5 ee4ccce812 robotd: retry a stand-up that stalls, as Start twice does by hand
From the back the policy sometimes gets half-way up and holds a pose it
never gets out of. Whenever the policy takes the robot, watch it: if it is
not up (inside limp_fall_tilt_z for limp_fall_arm_ms) within
limp_fall_standup_ms (3 s), pose it back to standing with the limp-fall
ramp and hand over again, up to limp_fall_standup_retries (3) times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:47:25 +01:00
Antoine Pirrone 886b62dd79 Merge pull request #585 from pollen-robotics/pad-head-expo-speed
pad: expo curve and speed cap on the head sticks
2026-11-13 12:11:29 +08:00
apirrone 1bfbc76166 Merge remote-tracking branch 'origin/main' into pad-head-expo-speed 2026-11-13 12:02:36 +01:00
apirroneandClaude Opus 5.5 5aedd7f79c pad: expo curve and speed cap on the head sticks
Head-mode sticks mapped linearly to the head target, smoothed only by
robotd's head_alpha EMA: hard to make fine movements, and a full snap
jumped then crawled in. Two pad-only settings in [pad_head]:

- expo (default 0.6): (1-e)x + e x^3, so the stick's centre is fine
  control and full deflection is unchanged.
- max_speed (default 3.0 rad/s, 0 = off): the stick-driven head target
  moves at most that fast, so a big move glides at a constant speed.

The IMU head is untouched. Both are live-reloaded like the rest of the
pad sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:34:39 +01:00
apirroneandClaude Opus 5.5 df01ab69a3 Network LED: green on wifi, blue for a connected gamepad without wifi
The LED no longer says whether the relay is registered. Green is wifi
(blinking while joining); without wifi, blue is a bonded Bluetooth
gamepad connected; off with neither. Wifi wins when both hold.

Both facts are configd's own, so the indicator stops reading mediad's
/run/mediad/remote.json. architecture.md §3.2 updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:57:56 +01:00
Pollen-CocoandClaude Opus 5.5 d097c91467 Merge main into nfc-mode-tags: face LEDs dimmed, D-pad remap reverted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:39:14 +08:00
Pollen-CocoandClaude Opus 5.5 e49fb223ff Revert the D-pad remap (#583): back to left move, right head + move, down body + head
Reverts merge 69f828fa. Up was head mode before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:28:51 +08:00
Pollen-CocoandClaude Opus 5.5 1006a0a31b Merge autonomous-revive into nfc-mode-tags: the autonomous_mode tag switches autod on
autonomous-revive brings autod, mapd and maploc, and robot.autonomous:
the switch robotd holds, which the autonomous_mode tag now sends after
laser and soccer off and the robot into walk. Every other mode tag
switches it off. The API is v60; soccer stays v58.

nfc-tags.md says what the tag does and that the pad takes over;
autonomous.md owns the rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:18:00 +08:00
apirroneandClaude Opus 5.5 911c0933e7 Merge main into autonomous-revive: soccer, map and autonomy move to API v58-v60
main took v57 (a join's progress). Type 5 tag writing keeps refusing
MIFARE Classic; pad-map's cfg.skill keeps soccer's bumper kicks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:05:06 +01:00
apirroneandClaude Opus 5.5 ef3f2b1caa autonomy off costs nothing: autod and mapd idle, robotd ends the laser and ball
- autod, switched off, holds one connection and asks robot.mode once a
  second: no state stream, no ToF, no map. Switched on it opens a session
  (streams and a fresh brain) and closes it when switched off. The stand-up
  wait stops when the switch goes off, rather than running out its 20 s.
- mapd, unless [map] enabled, maps exactly while autonomy is on: off, it
  saves the map and its feeds hang up instead of mapping until a restart.
- robotd switches laser tracking and autonomous soccer off with the
  autonomy switch, so an autod that is down or restarting cannot leave
  them running. Soccer by hand is left alone.

Measured against robotd --fake: 0 CPU ticks for both while off, through
two on/off cycles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:01:20 +01:00
Coralie 69f828fa8e Merge pull request #583 from pollen-robotics/gamepad-dpad-remap
pad: D-pad left is head + move, right body + head, down move
2026-11-13 11:17:35 +08:00
apirroneandClaude Opus 5.5 b68b356688 Dim the face indicator LEDs; leave the flashlight at full
On face-board-v1's PWM drivers every LED lit at max_brightness (255),
which glares. Led now lights each one at a per-name level, capped at its
max_brightness: 5 for the camera LED, 15 for status, network and the
battery gauge, and the full max for the flashlight, which was already
tuned. The beta's on/off LEDs cap every level to 1, so nothing changes
there.

A blink now writes the level before starting the timer trigger, which
otherwise blinks at max_brightness when started from off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:59:55 +01:00
Pollen-CocoandClaude Opus 5.5 136c484d7f pad: D-pad left is head + move, right body + head, down move
Up stays head mode. The swap is in pad-map's one table, so padd and
netpadd, walk and roller, all follow; the configure labels, padd's
crate doc and the cheat sheet name the new arrows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:47:45 +08:00
Pollen-CocoandClaude Opus 5.5 2f814e6447 Merge main into nfc-mode-tags: Type 5 writes and the join's progress
main took API v57 for net.status's joining, so soccer moves to v58.
nfcd writes Type 5 tags now and still refuses a MIFARE Classic;
nfc-tags.md says so, and stays the one page for writing a tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:45:50 +08:00
apirroneandClaude Opus 5.5 b40ebd9994 autod: keep the backward drift off the walls; a sit is a check, not lost
The walking policy drifts backwards when it turns in place, and nothing
sees behind. With the map's grid:
- a turn or a wander pivot with a wall within 45 cm behind and clear floor
  ahead creeps forward at the slowest walk instead of pivoting;
- no Stretch or Dance (body poses that lean) with a wall within 40 cm
  behind;
- backing up (odometry, < -4 cm/s smoothed) is logged with what was moving
  the robot, and with a wall within 35 cm behind the duck braces: the
  state ends (a ball game too), pose released, a step forward if clear.

mapd's `sat` and `bumped` are a nearby check, not lost: one survey, then
on with life, instead of 90 s surveying in place after every nap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:13:23 +01:00
apirroneandClaude Opus 5.5 187c9c4190 autod: see a get-up through — init pose and a second try, as the stress test does
After a fall robotd hands the robot to the standing policy to get up.
autod now watches that like robotctl stress (getup.rs, ported): still
down 5 s after the policy took over, the policy is cut for 2 s so the
robot settles into its init pose, then given back for a second try.
Down after that: torque off and the questioning quack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:06:59 +01:00
apirrone e46245940a Merge branch 'autonomous-revive' into autonomous-map 2026-11-12 17:54:45 +01:00
apirroneandClaude Opus 5.5 7ab7277376 autod: stand up again after robotd restarts, not only after a boot
The stand-up marker was the boot alone, so a duck updated without a reboot
stayed limp: the update restarted robotd (limp) and autod (marker matched).
It now names the robotd it stood up with as well (boot_id and robotd's
start, from robot.state's t_ns - t). A new robotd came up limp by itself
and is stood up; only autod restarting with the same robotd still leaves
the robot as somebody left it. An old marker matches nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:54:45 +01:00
Pierre Rouanet 6eab9f3ddd Merge pull request #579 from pollen-robotics/net-join-progress
net.status reports the join in flight
2026-11-12 17:49:14 +01:00
apirrone 65a80c1db7 Merge branch 'autonomous-revive' into autonomous-map
# Conflicts:
#	autod/src/brain.rs
2026-11-12 17:45:18 +01:00
apirroneandClaude Opus 5.5 459f852c74 autod: a dot wakes a napping duck
Laser tracking stays on through a nap, and a followed dot stands the duck
up at once and sends it after the dot. The nap after a chase is the
exception: laser_tired keeps the laser off, so a tired duck rests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:44:45 +01:00
apirroneandClaude Opus 5.5 aa9eba092b autod: the brain uses the map — surveys, staying put when lost, goals that know the room
- The map is an offset: map.stream's pose paired with the odometry of the
  same t_ns. The novelty grid, blocked spots and goals live in the map's
  frame from the first fix (carried over from odometry's), and goals are
  converted back every tick, so a correction moves the goal.
- A wander bout that reaches its goal ends in a 4-6 s survey, the head
  sweeping +-0.9 rad: the stops the map grows from.
- Lost, the duck stops walking and alternates surveys and short turns in
  place, for up to 90 s, then lives normally again.
- Every 20 s the grid is fetched: paths within 15 cm of a known wall are
  shut, and goals with unseen floor around them score better.
- The novelty grid is saved to /var/lib/autod/visits.json every minute
  and restored at the first fix, faded by the time since.

Without mapd, or with one not mapping, nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:37:36 +01:00
apirroneandClaude Opus 5.5 fa16f967ed autod: the duck chases the laser and plays with the ball; a tag switches it on
The brain gains two states, both driven by robotd and wanted by the brain:

- Laser: tracking is on whenever the duck could chase (not tired, not
  napping, petted or playing ball). A followed dot interrupts any
  standing or walking state; the chase ends 2 s after the dot goes, and
  costs twice a walk's energy. Below 0.2 the laser goes off and the duck
  naps; it comes back above 0.45.
- BallPlay: picked from the standing pool when rested and off cooldown,
  less often the more bored of the ball. No ball in 20 s backs off 3 min,
  doubling per miss up to 30. A game ends on 3-8 kicks, 1-3 min shrunk by
  boredom, the ball lost for 15 s, or tiredness; then 4-8 min of rest.

While robotd drives either, autod sends a zero twist and a centred head,
which robotd reads as nobody asking. A game somebody else started is
stood aside for, and the brain's own is switched off when the pad takes
over.

The on/off switch moves into robotd (robot.autonomous, read back in
robot.mode and robot.state; part of v59), so the NFC autonomous_mode tag
can switch it — nfcd cannot write robotd.toml. [autonomous] enabled is
now only where each boot starts; robotctl autonomous on|off switches it
now. autod stands the robot up on the switch's rising edge, and once per
boot for the switch at boot. padd learns it from robot.mode. mapd starts
mapping the first time it sees the duck switched on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:27:01 +01:00
apirroneandClaude Opus 5.5 7bc9fb2e26 Merge autonomous-mode (autod) into autonomous-revive: the brain is API v59
The October brain, brought up to main. Beyond the conflicts:

- The pad's handoff (silent until touched, lets go after pad_idle_s) is
  now pad_map::engage, since main moved padd's mapping into pad-map. A pad
  nobody was touching going away no longer sits the robot down: the brain
  was driving, not the pad.
- autod walks at the pad's [pad_drive] full stick rather than the removed
  robotd_params::drive constants.
- [map]'s template values are commented out like [laser] and [soccer]:
  they never shipped live, so they do not belong in EVER_SHIPPED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:01:35 +01:00
apirroneandClaude Opus 5.5 5076bb6542 Merge maploc-v2 (maploc, mapd) into autonomous-revive: map.* is API v58
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:52:01 +01:00
apirroneandClaude Opus 5.5 b2f2f9fc40 Merge nfc-mode-tags (soccer, mode tags) into autonomous-revive: soccer is API v57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:48:04 +01:00
apirrone 441bb9dd85 Merge remote-tracking branch 'origin/nfc-mode-tags' into ball-mode 2026-11-12 16:36:03 +01:00
apirroneandClaude Opus 5.5 e01e0b07e2 soccer: stand still, head neutral, then kick
On the robot every autonomous kick started (`skill started
skill=kick_right`, five times) and none kicked: the head snapped to its
neutral pose and the legs barely moved — while LB/RB kicked fine.

The difference is where the kick starts from. By hand it starts from a
robot standing still and looking ahead, which is what the kick network
was trained from. Soccer started it the tick it lined up: mid-step from
the last correction, with the head pitched right down at the ball under
the beak — a state the network has not seen.

Now, lined up, the robot stands still with its head neutral for
`[soccer] ready_ms` (600 ms, `getting ready` in the readout), then
kicks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:20:31 +01:00
apirroneandClaude Opus 5.5 ddaf884ea1 soccer: kick through the gait's sway, and from a stall short of the spot
On the robot it walked to the ball and never kicked, while LB/RB did —
so the kick was never asked: the ball never sat in the kick spot
(±4 × ±2.5 cm) for settle_ms in one go.

Two ways that happens, both handled. The gait sways the trunk a
centimetre or two a step even standing, and every sway out of the spot
restarted the settle: now the spot is left only past twice the
tolerances. And the last centimetres ask for less speed than the gait
walks, so the robot stops just short: within twice the tolerances for
`[soccer] stall_ms` (1.5 s) it now kicks from there.

`robot.state`'s soccer block gains `spot_m`, the ball's offset from the
kick spot, shown by `robotctl soccer` — what to read when it stands at
the ball and does not kick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:09:42 +01:00
apirroneandClaude Opus 5.5 adc3167d5e Merge main into ball-mode
Main's v54 (ssh on wifi) and soccer mode both claimed API_VERSION 54;
soccer mode moves to v55.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 15:56:51 +01:00
Pierre Rouanet 3fd36274a9 net.status reports the join in flight
net.connect answers once, after up to 55s. While it runs, net.status now
carries `joining: {ssid, step, elapsed_seconds, timeout_seconds}`, with
step one of scanning, associating, authenticating, key_rejected,
addressing. configd's connect fills it: the scan first, then the
device transitions it already subscribes to. A Join handle clears the
slot on drop, so every return path clears it.

duckctl wifi connect polls it every 2s on the same BLE session and
prints each step change; robotctl net status shows it. FakeNet walks
the same steps and can hold a join at one, which is how the tests see
a join in flight.

API v57: additive, absent from an older configd.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 15:32:08 +01:00
Pierre Rouanet 8257ce5d96 nfc-flash asks for a tag, not an NTAG
Assisted-by: Claude:claude-opus-5-5
2026-11-12 15:06:35 +01:00
Pierre Rouanet d73f66bd80 nfc: write Type 5 (ISO 15693) tags, formatting a blank one
nfc.write refused every Type 5 tag. A blank one is also the tag no phone
app will format unless it knows the maker (manufacturer 0x48 here: not
NXP, not ST), so the robot was the only writer left and it said no.

vtag now writes with WRITE SINGLE BLOCK. A formatted tag keeps its
capability container; a blank one gets a 4-byte container granting read
and write, sized from GET SYSTEM INFO or MLEN 0 when the tag keeps its
size to itself. Block 0 goes last, and the message is read back.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 15:01:25 +01:00
apirroneandClaude Opus 5.5 f8a9e30ed3 soccer: face the ball before walking, and a kick is only a kick once it started
On the robot the approach curved — walking and turning at once — and
near the ball it stopped and looked back up without kicking.

Turn, then walk: the legs only walk once the ball is within
`[soccer] align_rad` of straight ahead (near the ball, the kicking
foot's line to it), and stop to turn again past twice that.

The kick: autonomous soccer used to forget the ball and look away the
moment it *asked* for a kick, whether or not the loop started one — and
a refused skill is logged at debug, so nothing said why. The loop now
reports each soccer kick's outcome back in the same tick: started, the
ball is forgotten for the cooldown with the head left on where it was;
refused, the ball stays tracked, the reason is logged at warn, and the
kick is asked again after another settle.

And within approach_m, where the ball is under the beak and out of the
picture, it is remembered for `close_memory_ms` (10 s) rather than
memory_ms, so lining up by odometry alone does not run out of time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:35:35 +01:00
Pollen-CocoandClaude Opus 5.5 ccf5cf7172 docs: NFC tags get a page of their own
nfc-tags.md owns the tags: the pairing tag, the mode tags (walk, roller,
laser, soccer, autonomous) and what each switches on and off, which tags the
reader takes (NTAG yes, Type 5 on the beta reader, MIFARE Classic no), writing
one with robotctl/duckctl nfc-flash or a phone, and what each journal line
means. pair-a-gamepad.md keeps one paragraph and a link; the README, the docs
index and the cheat sheet's gamepad, laser and soccer sections point at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:38:19 +08:00
Coralie 15dae7f1df Merge pull request #576 from pollen-robotics/roller-gamepad-mapping
Roller: A and X run no skill; pin the policy set to v10 (swizzle)
2026-11-12 17:26:57 +08:00
Pollen-CocoandClaude Opus 5.5 740bb23447 Pin the policy set to v10: the swizzle roller gait
v10 on the Hub differs from v9 in roller.onnx alone, now the swizzle skating
policy (Mjlab-Velocity-Swizzle-MicroDuck); the manifest and every other file
are v9's, byte for byte. Tested on a robot with `robotctl policy update
--version v10` before pinning.

The pin is a minimum: after the release, the post-install hook moves boards
on our set below v10 up to it, and a fresh board seeds v10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:15:54 +08:00
Pollen-CocoandClaude Opus 5.5 3937970256 Merge main into nfc-mode-tags: nfc-flash and 0.20.1
nfc.write is API v56 on main, which took v55 for withdrawing
system.openWifiSsh, so soccer mode becomes v57. A write refuses a MIFARE
Classic as it refuses a Type 5 tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:54:33 +08:00
Pollen-CocoandClaude Opus 5.5 d451f74047 Merge main into nfc-flash: nfc.write is API v56
main took v55 for withdrawing system.openWifiSsh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:15:44 +08:00
apirrone 82cb030834 Withdraw system.openWifiSsh: wifi ssh stays a decision made with the robot open
Reverts the BLE trigger from #572 (fe4c5ccf, 4fb1faa9) and duckctl
ssh-wifi, and keeps the rest of #572: gateway logging, the console
bridge, stale-bond handling.

ssh on wifi is a security boundary (microduck_yocto#110): once opened,
the login is the shared operator password, so anyone on the network
could log in until reboot. Opening it from a phone in Bluetooth range,
even behind the setup code, moved that decision out of the robot. It
stays where #110 put it: over the head's USB-C link (sudo touch
/run/microduck-ssh-wifi), or the dev image.

duckctl ssh's refusal message now says exactly that. API_VERSION 55, not
53: 54 shipped in 0.20.0 meaning "has openWifiSsh". A v54 client asking
a v55 configd is refused by name.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 15:48:38 +01:00
Pollen-CocoandClaude Opus 5.5 cbbcf3e016 nfc: a write waits 20 s, and the robot asks for the tag
nfc.write's default wait is 20 s rather than 30. When a write starts
waiting, the robot plays the sound it makes when it loses its pad — the
questioning quack — so whoever ran robotctl or duckctl nfc-flash hears it is
waiting for a tag. It plays before the write is handed to the poll loop, so a
tag already on the reader is asked for before its quack says it took.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 15:31:14 +08:00
Pollen-CocoandClaude Opus 5.5 b7aafe5098 nfc: write a tag — robotctl nfc-flash, and duckctl over Bluetooth
`nfc.write { text, timeout_s }` (API v55) has nfcd write the text onto the
next NTAG touched to the head, or one already on the reader, as one NDEF
text record, then read it back. The robot quacks when it took. While a
write waits, a touched tag is written rather than acted on, and the tag
just written is not then read as a touch, so writing a pairing tag does
not pair.

nfcd serves it on its own socket, /run/nfcd/nfc.sock (group robot, 0660),
from threads that hand each write to the poll loop, which owns the reader.
`robotctl nfc-flash <text>` asks it there; btd now holds a fourth socket
and permits nfc.write over BLE, so `duckctl nfc-flash <text>` does the same
from a laptop. mediad refuses it: someone has to be at the robot to touch
a tag.

Only Type 2 is written. The capability container decides: a MIFARE Classic
or an e-ink refuses its READ, an unformatted or read-only tag says so, a
text longer than the tag is refused, all before any page is written. Pages
0-3 and the configuration pages are never written, so a write cannot lock
a tag. The WRITE's four-bit ACK is taken loosely — a reader may not frame
it — and the read-back is what says the tag holds the text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 15:10:07 +08:00
Pollen-CocoandClaude Opus 5.5 a46631dbb3 pad: on wheels A and X run no skill
A roller robot ignores whatever [pad] binds to A (South) and X (West),
pressed or held: sit <-> stand means nothing on wheels, and a skill held on
X is not something the roller line has. B still runs the crouch in the
ground-pick slot. Both padd and netpadd map through pad-map, so both follow
it, and both already refresh the roller flag on robot.setMode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 15:08:07 +08:00
apirrone 4fb1faa991 openWifiSsh: the dev image ships the switch too; say so
Checked against microduck-image-dev.bb: it installs microduck-ssh-access
and adds a permanent any-interface drop-in on top. So the call answers
switched: true there, and changes nothing, rather than the switched:
false the docs promised.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 13:40:32 +01:00
apirrone 02e41549f3 duckctl: open the console through the gateway, ssh-wifi, stale bonds
Three things that failed on cream-dvt after a reflash:

- open: mediad has served the console on loopback since b23644e5, so
  http://<robot>:8080 could not work. open now runs a bridge on this
  machine. It serves the console page on 127.0.0.1 and tunnels its
  WebSocket through duck-gateway with the stored setup code, as the
  app's media_proxy does. Loopback is not private: browsers apply no
  same-origin policy to WebSockets, so a connection is tunnelled only
  with a per-run 128-bit token in its path and this page's Origin.
  --port is gone.
- ssh-wifi sends system.openWifiSsh. ssh now names the cause when a
  shipping image refuses port 22, instead of leaving a bare "Connection
  refused".
- scan ignores devices BlueZ remembers but has not heard in this scan.
  A bond from before a reflash showed up as a second cream-dvt at an
  address the robot had left days before. The connect-failure hint now
  names the stale bond and the bluetoothctl remove that clears it.

Docs: webrtc-console.md §2.2 owns the bridge; duckctl.md links to it.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 13:23:57 +01:00
apirroneandClaude Opus 5.5 52947b9002 duckctl: reach robots in secure mode with a stored setup code
A robot with a setup code refuses the PIN and serves only a client that
proves the key in the Noise handshake btd/src/secure.rs answers. duckctl
now speaks it:

- `duckctl setup-code add|list|remove` keeps codes in
  ~/.config/duckctl/setup-codes (0600), filed under the robot id and any
  name the robot was reached under; `duckctl name` adds the new name.
- A command against a robot with a stored code runs the handshake from
  duck-auth instead of the PIN, and seals/opens every line after it.
- A wrong key fails after 5s with a message naming it, rather than a
  15s "no reply".
- On Linux, a pairing agent for the length of the command, consenting
  for the robot being connected to only. Without one BlueZ refused the
  just-works bond ("No agent available for request type 2") whenever no
  desktop agent was up.

Tested against cream-dvt (daemon 0.19.0, secure mode): fresh pairing
with an external agent, handshake, system.info, and the wrong-key path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:41:45 +01:00