Repository navigation
feat(planning): non-geodesic layer validation + slip limit + dwell reporting (#327) - #351
Merged
Merged
Conversation
…porting (#327) Wire the friction ratio lambda and the machine slip limit mu through the validator and dispatch, and report the turnaround dwell to the operator. This is the logic slice (PR2 of 3): lambda/mu are threaded as parameters and unit- tested directly; the .wind frictionLambda + MachineProfile.slipLimit fields, CLI --profile, example, conformance and docs land in PR3 (this PR sources lambda=0 and mu=default, so production behaviour is unchanged bar the richer cap comment). - validate_profile_helical_layer(..., friction_lambda, slip_limit): reject lambda>mu ("would slip") and lambda<0 FIRST (scalar, before integrating), then compute the geodesic (lambda=0) or friction-assisted (lambda>0) kinematics. - validate_layer / validate_helical_layer / validate_cone_helical_layer: reject a non-zero frictionLambda on a developable (cylinder/cone) mandrel — non- geodesic winding requires a Von Karman profile, not silently ignored. - dispatch_layer(..., friction_lambda): the profile fallback routes lambda>0 through compute_profile_helical_kinematics. - plan_wind threads lambda (0.0; PR3 -> layer.frictionLambda) and mu (default; PR3 -> options.profile.slipLimit); the cap G-code comment now reports the turnaround dwell |r'(cap)| and flags Phase-3 (#328) 4th-axis delivery when it exceeds mu. Tests: slip-limit reject/boundary/negative + slip-check-precedes-integration; lambda-on-cylinder/cone rejection; dispatch routes lambda>0 to the deeper path; lambda=0 element-wise regression lock; cap-comment dwell reporting (within-mu and Phase-3 cases).
Closed
7 tasks
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.
Part of #327 (Stage 3b Phase 2 — non-geodesic VK nosecone winding). PR 2 of 3: validation + dispatch wiring + dwell reporting.
Threads the friction ratio λ (
frictionLambda) and the machine slip limit μ (slipLimit) through the validators and dispatch, and reports the turnaround dwell to the operator. This is the logic slice: λ/μ are threaded as parameters and unit-tested directly. The.wind frictionLambdafield,MachineProfile.slipLimitfield, CLI--profile, shipped example, conformance corpus, and docs are deliberately deferred to PR3 — so production still runs at λ=0 (μ=default) and the λ>0 behaviour is exercised by direct unit-test calls (the same dead-until-next-PR pattern as PR1).What's here
validate_profile_helical_layer(..., friction_lambda, slip_limit)— rejectsλ>μ("would slip") andλ<0first (scalar, before integrating), then computes the geodesic (λ=0) or friction-assisted (λ>0) kinematics.frictionLambdaon a cylinder/cone helical (and the cylinder non-helical path) is rejected: non-geodesic winding requires a Von Kármán profile, not silently ignored.dispatch_layer(..., friction_lambda)— the profile fallback routes λ>0 throughcompute_profile_helical_kinematics; documented as a validated-input boundary for non-VK surfaces.plan_windthreads λ (0.0; PR3 →layer.frictionLambda) and μ (default; PR3 →options.profile.slipLimit); the bare-cap G-code comment now reports the turnaround dwell|r'(z_cap)|and flags Phase-3 (Stage 3b · Phase 3 — delivery kinematics for steep profiles (radial cross-feed 4th axis) #328) 4th-axis delivery when it exceeds μ.Honesty in the reporting
The cap comment states the physics plainly rather than over-claiming: e.g.
Bare polar cap: ~50.36 mm … Turnaround dwell |r'|=0.187 (within slip limit 0.2). For a deeper friction cap where the dwell exceeds μ, it says the laying reaches the cap but the reversal needs 4th-axis delivery (#328).Adversarial review — SHIP
An adversarial reviewer verified the positional threading (no off-by-one into
slip_limit/tow), that the slip check genuinely precedes integration, that dispatch and validator can't diverge on λ, thatcap_dwell_slopeis populated on both branches, and that the new tests actually constrain behaviour (not vacuous). Findings were all minor/nit: I fixed the cone-vs-profile validation-order inconsistency and documented the dispatch trust boundary; two watch-items (makefrictionLambdahelical-only so skip/hoop can't carry it; add aplan_wind-level λ>0 test) are recorded as PR3 constraints.Gate
Full backend suite 320 passed (11 new tests); ruff + format + mypy clean; no schema/config surface touched; λ=0 geodesic move-count pins (22552/32572) unchanged.