Log inGet started
World

Crumple Zone: Crash Test Dummy Simulator

Branchmain
Commit8d4e06b8c8

README.md

crashRig tests

Regression suite for the crashRig package. It checks behaviour and invariants, never tuning numbers:

  • Measurement (crashRig.measure): channels keep time order; resampling interpolates onto a 1 kHz grid; the SAE J211 CFC filter passes a steady level and damps noise far above its class; HIC15 of a flat pulse matches T·a^2.5 (capped by the 15 ms window); the 3 ms clip ignores a spike shorter than 3 ms; HIC and clip rise with the pulse level; decimation keeps the peak; the star rating and its good / acceptable / marginal / poor bands.
  • Recorder (crashRig.recorder): root bookkeeping before anything is recorded.
  • In play: a private rig at x = −2000 runs a whole 30 km/h rigid-wall test with front airbags through request("prepare") / request("run"), publishes a result with a sane impact speed, head and chest g, crush and a fired airbag, and request("clear") removes every root it spawned. The test enters play itself and leaves it with engine.discardPlayChanges().

Run it in edit mode: zero tests run crashRig.