Commit Graph
1662 Commits
Author SHA1 Message Date
apirrone 79ed15ec1e Merge branch 'autonomous-revive' into autonomous-map
# Conflicts:
#	autod/src/main.rs
daemon-dev-autonomous-map
2026-11-12 18:08:00 +01:00
apirroneandClaude Opus 5.5 63bdf3172a 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:07:47 +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
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
apirrone e46245940a Merge branch 'autonomous-revive' into autonomous-map 2026-11-12 17:54:45 +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 daemon-dev-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
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
Coralie a2d9f1cdb1 Merge pull request #575 from pollen-robotics/nfc-flash
nfc: write a tag — robotctl nfc-flash, and duckctl over Bluetooth
2026-11-12 16:34:40 +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
Antoine Pirrone 7fba12ed04 Merge pull request #574 from pollen-robotics/remove-wifi-ssh-over-ble
Withdraw system.openWifiSsh; prepare 0.20.1
daemon-v0.20.1
2026-11-12 15:57:02 +08:00
apirrone 1516a488ec Prepare release 0.20.1
Withdraws system.openWifiSsh (API 55), which 0.20.0 shipped: wifi ssh
stays a decision made over USB or by flashing the dev image. Nothing
else changes since 0.20.0.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 15:48:39 +01: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
Antoine Pirrone 039a1a845d Merge pull request #573 from pollen-robotics/release-0.20.0
Prepare release 0.20.0
daemon-v0.20.0
2026-11-12 14:51:41 +08:00
apirrone c16cb7ebc9 Prepare release 0.20.0
Bump the workspace to 0.20.0. Since 0.19.0:

- #572 out-of-box fixes, from a fresh-flash test of cream-dvt:
  system.openWifiSsh (API 53 -> 54) opens ssh on wifi until reboot,
  over the secure BLE session; duck-gateway logs why a session ended;
  duckctl open reaches the console through the authenticated gateway;
  duckctl ssh-wifi; scan ignores cached BlueZ devices; stale-bond hints.
- #570 duckctl reaches robots in secure mode with a stored setup code.
- #569 prompt name: read the SoC serial where configd does, per board.
- #567 ci: cache apt downloads.

API_VERSION 54, additive: an older configd refuses system.openWifiSsh by
name. Cargo.lock regenerated with `cargo update -w`, so every workspace
crate is at 0.20.0 (0.19.0 needed #566 for two it missed).

Assisted-by: Claude:claude-opus-5-5
2026-11-12 14:44:20 +01:00
Antoine Pirrone 649dfdd30c Merge pull request #572 from pollen-robotics/fix/out-of-box-findings
Out-of-box fixes: gateway logs, ssh on wifi over BLE, duckctl console and stale bonds
2026-11-12 14:43:36 +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
apirrone fe4c5ccfde system.openWifiSsh: open ssh on wifi until reboot, over BLE
The shipping image answers ssh only on the head's USB-C link
(microduck_yocto#110). Its microduck-ssh-access package opens wifi ssh
until reboot when /run/microduck-ssh-wifi appears, and #110 named the
missing piece: "configd creating the file on an authenticated BLE
request". Until now the only way to create it was to open the robot.

- configd creates the file, and only if the image has the switch.
  Otherwise it answers switched: false (the dev image, which has ssh on
  wifi already).
- btd routes it, behind the secure session the setup code opens: the same
  physical-presence argument as net.connect.
- mediad refuses it, because a WebRTC peer need not be in the room.
- It's mutating, so updaterd's peer policy applies.

API_VERSION 54. An older configd refuses it by name.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 13:23:57 +01:00
apirrone f54f54c09c duck-gateway: say why a session ended, at a level the journal keeps
A phone whose Drive failed left no trace on the robot: every way a gateway
session ends was logged at debug. Found on cream-dvt, where the only way
to tell "the phone never connected" from "it connected with the wrong
code" was to turn debug on and ask for another try.

Authentication failures and an unreachable mediad are now warnings, a
full gateway is a warning, and an authenticated session opening is info.
A session ending normally stays at debug.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 13:23:57 +01:00
Antoine Pirrone e7c1cab77b Merge pull request #570 from pollen-robotics/duckctl-setup-code
duckctl: reach robots in secure mode with a stored setup code
2026-11-12 06:04:17 +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
Pollen-CocoandClaude Opus 5.5 831fc107f0 nfc: MIFARE Classic is not read after all
The tags are NTAG215s, which the Type 2 path already reads, and the
e-ink display is told by its SAK alone (ISO 14443-4), with no Crypto1.
So the Crypto1 cipher, the MIFARE Classic reader and the ST25R100's raw
framing go: st25r100.rs and reader.rs are back to main's. What stays is
the SAK from selection, and a Classic touched to the reader is said once
in the journal instead of retried as an NTAG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:37:05 +08:00
Antoine Pirrone e0c7369d5a Merge pull request #569 from pollen-robotics/prompt-name-board-serial
Prompt name: read the SoC serial where configd does, per board
2026-11-12 03:40:19 +01:00
apirrone 1cff8db55d Prompt name: read the SoC serial where configd does, per board
On a fresh beta or face-board-v1, the shell prompt said one duck-xxxx and
BLE (and the setup code) another, until a rename hid it. The prompt
snippet hashed /proc/device-tree/serial-number on every board, but since
34b6e7dc robotd-params reads a beta's serial from /proc/cpuinfo: the beta
U-Boot reads the OTP three bytes early. The prompt was the wrong one.

Pick the source from robotd.toml's [board] version, as soc_serial_at
does: device tree for zero3 (and unset), cpuinfo for beta and
face-board-v1, all-zero cpuinfo rejected. Checked the extracted snippet
against fake files with serial.rs's test vectors for each board.

Assisted-by: Claude:claude-opus-5-5
2026-11-12 10:22:34 +01:00
apirroneandClaude Opus 5.5 36ed22c042 nfc: the soccer_mode tag switches soccer mode on
The tag puts the robot in walk and switches soccer mode on by hand —
the bumpers kick, D-pad down plays — rather than starting autonomous
play: a robot that sets off after a ball the moment a card touches it
surprises whoever holds it. Every other mode tag switches soccer off,
the rule the laser already followed; both switches go through one
`Switch` so the next one is a line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:25:32 +01:00
apirroneandClaude Opus 5.5 13ebe9c5bb Soccer mode: kicks on the bumpers, and a robot that plays by itself
Two switches in robotd, set by `robot.soccer {active, autonomous}`:

- soccer mode: the pad's LB/RB run kick_left/kick_right whatever they
  are bound to, and D-pad down starts autonomous play instead of
  body + head;
- autonomous: the robot turns until it sees the purple ball, walks to
  it, steps sideways until the ball is in front of the foot on its
  side, kicks, and looks again. Any pad button takes it back to manual,
  and that press does nothing else. A pushed stick wins over it, as
  over the laser.

mediad finds the ball (`media.ball`, beside `media.laser`, sharing its
look loop): purple is the hue with both chromas above grey; passing
cells on a 4x4 grid are grouped into blobs, and a blob is the ball when
big enough, filled and round — a ball cut by the frame's edge keeps its
centre and radius from its uncut sides. Every look carries the most
purple colour seen, passed or not, for tuning. robotd projects the
centre onto the plane a radius above the floor with the laser's own
projection, now shared, and carries it by odometry through the last
steps where the ball is under the beak.

The pads learn soccer mode from `robot.mode`, which they already poll
each second — so an NFC tag switching it reaches the pad. Soccer and
laser tracking switch each other off. `[soccer]` holds the detector
thresholds, the kick spot and the gains, all live; `robotctl soccer
on|auto|off` switches it and is the tuning view; the web console draws
the ball.

API_VERSION 54: `robot.soccer`, `robot.mode`'s `soccer`,
`robot.state`'s `soccer` block, `media.ball` / `media.ballSeen`.

Colour thresholds are a first guess; to be tuned on camera images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:25:32 +01:00
Pollen-CocoandClaude Opus 5.5 f66ed71637 nfc: the laser tag switches laser tracking on
Laser tracking landed in main as robot.laserTrack, a switch on top of
whichever mode runs rather than a robotd mode. laser_mode now puts the
robot in walk and switches it on; walk_mode and roller_skating_mode
switch it off first, so a tag is the mode the robot is then in. A robotd
without the method refuses it, which is logged and does not stop the
walk or roller switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:47:12 +08:00
Pollen-Coco bd854cfb00 Merge branch 'nfc-mifare-classic' into nfc-mode-tags
# Conflicts:
#	nfc/src/lib.rs
2026-11-11 12:44:44 +08:00
Pollen-CocoandClaude Opus 5.5 59e6e31bf7 nfc: a MAD's NDEF AID sits on the card as 03 E1
The MAD was read as little-endian AIDs, so a phone-formatted card's
03 E1 read as E103 and no sector was NDEF: every real card would have
read as blank. The simulated card made the same mistake, so the tests
agreed with it. A test now pins the order to a real dump, whose MAD
CRC (14) only checks out with 03 E1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:25:16 +08:00
Pollen-CocoandClaude Opus 5.5 0cddeea78d nfc: read NDEF-formatted MIFARE Classic cards on the ST25R100
A MIFARE Classic selects as ISO 14443A and is told apart by its SAK, then
refuses the Type 2 READ: every sector opens only after a Crypto1
authentication, and from then on its bytes and parity bits are encrypted.
The ST25R100 has no Crypto1, so the cipher runs here and the chip is
driven with parity and CRC off, sending and receiving raw 9-bit groups
(a_tx_par/a_rx_par clear, fifo_lb for the received bit count).

The card is read the NFC Forum way: the MAD in sector 0 with key
A0A1A2A3A4A5 says which sectors are NDEF, each opens with the public
key D3F7D3F7D3F7, and their data blocks are the same TLV area a Type 2
tag has. A card that refuses those keys is not NDEF-formatted and is
said once per touch rather than retried.

Not yet run against the board's reader: st25r100_classic is the bench
tool for that. The CLRC663 path reports such a card as unreadable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:58:15 +08:00
Pierre Rouanet ef666aada8 Merge pull request #567 from pollen-robotics/ci-cache-apt
ci: restore the apt packages from the Actions cache
2026-11-10 15:39:27 +01:00
Pierre Rouanet 6c994a2178 ci: cache apt's downloads instead of the installed files
cache-apt-pkgs-action installs without a fresh apt-get update. On its
first run here two packages had moved on the mirror, the install 404'd,
and the action reported success with an empty cache, so the build
failed to link GStreamer. Cache apt's archive directory instead: apt
runs as normal, fails as normal, and only fetches what is missing.

Assisted-by: Claude:claude-opus-5-5
2026-11-10 15:21:20 +01:00
Pierre Rouanet a89c4b2ee9 ci: restore the apt packages from the Actions cache
plugins-bad pulls ~250 MB of OpenCV, VTK and ffmpeg from
azure.archive.ubuntu.com on every run. That normally takes under a
minute, but a slow mirror today turned it into 20-26 minutes of the
`check` job. Caching the installed packages takes the mirror out of
the path after the first run.

Assisted-by: Claude:claude-opus-5-5
2026-11-10 15:15:35 +01:00
Pierre Rouanet 590e07a6fa Merge pull request #566 from pollen-robotics/lockfile-0.19.0
Cargo.lock: duck-auth and duck-gateway at 0.19.0
daemon-v0.19.0
2026-11-10 15:07:02 +01:00
Pierre Rouanet e27e97ab9c Cargo.lock: duck-auth and duck-gateway at 0.19.0
The 0.19.0 release bump was cut before #556 brought these two crates
in, so their lock entries stayed at 0.18.9 and every --locked build on
main refuses to rewrite the lock file.

Assisted-by: Claude:claude-opus-5-5
2026-11-10 14:42:20 +01:00
Pierre Rouanet 171a8e1a0c Merge pull request #564 from pollen-robotics/release-0.19.0
Prepare release 0.19.0
2026-11-10 14:33:17 +01:00
Pierre Rouanet 6bb6c67613 Merge pull request #556 from pollen-robotics/codex/secure-media-and-ble-defaults
Secure media and BLE access by default
2026-11-10 13:58:50 +01:00
Pierre Rouanet 4e068b2a3f Prepare release 0.19.0
Bump the workspace to 0.19.0. 0.18.9 was prepared but never tagged,
so this release carries it (#550, policy set pinned to v9) along with:

- #558 laser tracking: robot.laserTrack and RobotState::laser, fed by
  mediad's local media.laser. Off by default.
- #551 the ROBOTIS impact guard on V3/V4 servos, setting R when on.
  Off by default; robotd also writes Current Limit 1000 mA to every
  servo at startup.
- #561 pad_drive: default vx_min is -0.3.
- #562 pad-map: Home toggles the flashlight on a tap's release, so
  holding Home to power a pad off no longer lights the robot.

API_VERSION 51 -> 53, both additive. Laser tracking needs mediad and
robotd from the same release; installing the release brings both.

Assisted-by: Claude:claude-opus-5-5
2026-11-10 13:50:49 +01:00