Skip to content

A person flies a unit (actors step 5) - #137

Merged
ptescher merged 1 commit into
masterfrom
actors-pilot
Nov 15, 2026
Merged

ptescher merged 1 commit into
masterfrom
actors-pilot

Conversation

@ptescher

Copy link
Copy Markdown
Owner

Step 5 of plans/actors.md: a person flies a unit.

What changed

  • Seat protocol: Join::Unit { team, drone }, ToServer::Sticks { roll, pitch, throttle, yaw }, ToSeat::Piloted(Vec<usize>) (to seats that command), ToSeat::Mission (to the pilot: order, low, queue as last heard by the drone, EdgeObs, velocity, attitude, towers, clock). No map, umpire, sites or truth for a pilot.
  • Server: sticks become that drone's RC channels after the server's own take-off (the pilot's own take-off is not done). Winged drones only (quad refused), one pilot per drone. Sticks silent 2 s or seat gone: the drone is the computer's again. A pilot who joins a drone already in AGENT moves the radio mode switch off FBWA for 1.5 game s, then back.
  • Station: leaves piloted drones alone (no AGENT, no plans), still hears telemetry; hands back by switching to AGENT.
  • Mission: updated only while in_reach (air.rs rule); frozen in a shadow, catches up after.
  • Cockpit: towers_view --fly blue:2 (names count from 1): nose camera full screen, HUD, gamepad / TX15-as-joystick / keyboard. Drawn only from the Mission (own pose, enemies its camera sees). PLANES and feed DRONES raised from 6 to 10.
  • towers_pilot binary and recreation_towers_ground::pilot: a scripted pilot.
  • Expectations: arduplane/02-pilot.expect (3 SITL expectations), glossary Pilot and Mission.

Not done / not run

  • Pilot's own take-off; TX15 mapping not tried on a radio; keys and the cockpit picture/HUD were not seen (screen capture showed only the desktop). The cockpit did start and take the seat.
  • Rule-level pilot expectations were tried and backed out: a state no driver shows makes every coverage plan unsupported. The rules are unit tests.
  • In the suite's run only one of the three SITL expectations runs (coverage); it passed. A manual SITL game showed all behaviours.

Tests

  • cargo test --release -p recreation_towers -p cognition_towers -p recreation_towers_ground: pass (the towers acceptance passes with no window).
  • -p recreation_towers_server --bins: 38 pass. -p recreation_towers_view: 10 pass.
  • cargo test --release -p recreation_towers_server --test acceptance (SITL): only the known failure "No drone crashes" (1 crash); the pilot expectation passed.
  • Manual SITL game (scripted pilot on Blue2 from 40 s, 25 s): piloted_in_agent=0, piloted_mapped=805, turned 1033 degrees, mission arrived, 0 changes out of contact, AGENT with a plan after hand-back.
  • cargo run -p expectation -- check expectations: 0 errors. fmt and clippy clean.

🤖 Generated with Claude Code

Join::Unit takes one winged drone's radio channels from the sticks a seat sends; the
station leaves a piloted drone alone but hears it; the commander's order is the pilot's
mission and does not change out of contact; sticks silent for 2 s hand the drone back.
towers_view --fly is the cockpit; towers_pilot is a scripted pilot.

Co-Authored-By: Claude <noreply@anthropic.com>
@ptescher
ptescher changed the base branch from actors-advice-seat to master November 15, 2026 02:49
@ptescher
ptescher merged commit 7462f22 into master Nov 15, 2026
2 checks passed
@ptescher
ptescher deleted the actors-pilot branch November 15, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant