Skip to content

Calibrate nominal time model against real machine timing #130

Open

Description

@CameronBrooks11

What

Calibrate FiberPath's planning/simulation time estimate against real-machine wall-clock timing, and decide whether to keep the nominal model or refine it.

Background

The planner and simulator currently disagree on estimated time (see design docs temp/fiberpath-pattern-engine-design-v2.md / -finer-decisions.md, decision Q1):

  • machine.py includes delivery-head (B) rotation in time and treats mandrel rotation in degrees (dimensionally mixed with carriage mm).
  • simulator.py excludes delivery-head and treats mandrel as arc-mm.
  • Neither matches Marlin exactly, because Marlin's feed-rate handling for mixed linear (X mm) + rotary (A/B deg) axes is machine-config-dependent (M203 max feeds, M92 steps/mm).

Decision made: adopt the O1 "surface-arc" nominal model — time = Euclid(carriage_mm, mandrel_arc_mm) / feed, delivery-head excluded — as the single canonical model in the (forthcoming) Motion IR, documented as a nominal estimate. This issue tracks validating/scaling it against hardware when time allows (not blocking).

Task

  • Run a known program (e.g. an examples/rocketry/*.wind output, or a small representative one) on the real Marlin XAB machine; measure actual wall-clock time.
  • Compare to the nominal O1 estimate.
  • If consistently off by a factor, add a documented calibration multiplier (and/or per-axis feed limits) so reported time matches reality.
  • Decide whether to (a) keep O1 + calibration factor, or (b) implement the Marlin-faithful per-axis model (O2) using machine M203/M92 config.
  • Document the chosen time model + assumptions in the spec.

Notes

Low priority; do when hardware time is available. Best done after the Motion IR lands (single place for the time model).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-hardware

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions