plcopen 0.22.0
载入中...
搜索中...
未找到
exec 目录参考
exec 的目录依赖关系图
core/exec

文件

 
master_filter.h
 
mechanical_compensation.h
 
sampler.h
 
sync.h

详细描述

L4 exec

core/exec owns RT-side sampling of an already committed path. 这是 ADR-0007 运行时形态的 RT 消费半边:RT 线程只采样规划域已承诺的路径,本层代码运行在 RT 线程内。

R2 v1 scope:

  • fixed-capacity committed path storage;
  • O(number-of-segments) bounded sampling over a small fixed capacity;
  • scalar OTG profile position mapped onto L2 geometry.
  • minimal gear, cam, and overlay primitives,被 L5/L6 PLCopen 语义层消费。

Gear and cam are pure value mappings. Overlay is vector addition on sampled path output; state and command lifecycle 归属 L5 axis,不进入 L4。

CamTableView is the non-owning cam table handle used by L5/L6: full table validation (valid()) is an engage-time concern; the cycle-path sample() only guards emptiness and finiteness and supports optional periodic wrap over the master span.

Cam v2 (KB-046): cam_law_value / generate_cam_law produce classical rest-to-rise tables (cycloidal, modified sine with run-time-derived constants, 3-4-5 polynomial) in the offline/submit domain — the cycle path only ever consumes the resulting table.

Math-Max Step 4 (KB-108, doc/compliance/control-physics-operators-semantics.md):

  • master_filter.h (MasterTrackingFilter): opt-in discrete raw / alpha_beta / alpha_beta_gamma steady-state PLL tracking observer with strict-interior Jury stability validation, decoupled raw-stream modulo encoder unwrapping, deterministic phase-lead extrapolation, reanchor(), and atomic non-finite rejection;
  • mechanical_compensation.h (PitchErrorTable, BacklashCompensator1D): opt-in 128-knot scale-invariant C1 PCHIP / normalized-Thomas C2 natural cubic screw-pitch error map (0-ULP knot identity, strict |e'(x)| <= 0.5 and finite-e'' guards, full-order chain-rule feedforward + dimensionless safeguarded Newton inverse, KB-095 boundary contract) and extremum-travel hysteresis + closed-form C2 quintic Hermite backlash smoothing.