Skip to content

Add demo yaw motor dynamics and calibrated blade rendering - #70

Merged
mcroomp merged 3 commits into
mainfrom
feature/demo-yaw-motor-calibrated-blades
Dec 3, 2026
Merged

mcroomp merged 3 commits into
mainfrom
feature/demo-yaw-motor-calibrated-blades

Conversation

@mcroomp

@mcroomp mcroomp commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add finite-torque yaw-compensator dynamics and a simplified three-axis ArduPilot-style controller to the synthetic TypeScript bench demo, with calibrated blade feathering shared by the demo and live UI.

  • Run attitude/rate control and the motor plant at 400 Hz, with live gain/filter parameters, anti-windup, governor saturation, coast-down and coherent diagnostics.
  • Keep the bench restrained in roll/pitch so cyclic inputs produce sustained swash travel; leave yaw free to react when compensation is off.
  • Decode blade pitch from servo PWM and active swash calibration, including trims, reversal, linearization and collective angle limits; acknowledge demo parameter edits through the normal telemetry path.
  • Reconcile the overlapping implementation from Add blade pitch indicators and automatic rotor framing #69 into one blade-animation path while preserving automatic rotor framing, blade-tip crosses and rigid supports.

Validation

  • 122 focused tests pass across swash, motion, airframe, camera framing, simulator, collective and backend suites.
  • Production and standalone demo TypeScript checks/builds pass (existing bundle-size warnings only).
  • Browser smoke check: collective command changes servo outputs and the rendered canvas without runtime errors; safe-off restored afterward.
  • Patch whitespace checks pass; all stash conflicts resolved.

The pre-existing unrelated documentation edit is excluded, and the original stash is retained.

Guided demo tutorial

  • Add a demo-only, non-modal guide with Next/Finish, Skip and red boxes around the real controls; keep targets clickable on small screens.
  • Explain RAWES, the panel layout, rotating rotor hub, counter-rotated red instrument bay and yellow target-axis arrow.
  • Walk through camera setup with a clearly labeled sample QR, experiment creation, run passive, external motor start and focused keyboard controls.
  • Leave hardware UI and read-only replay unchanged; the sample QR never pairs a phone or records video.

Tutorial validation: 91 focused tests pass; production/demo builds pass; a visible-browser walkthrough covers camera QR, experiment creation, arming/runup, motor start, collective/cyclic keys, Finish, safe-off, Skip, small-screen target access and replay exclusion.

@mcroomp
mcroomp merged commit d30e70c into main Dec 3, 2026
2 checks passed
@mcroomp
mcroomp deleted the feature/demo-yaw-motor-calibrated-blades branch December 3, 2026 15:12
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