crashRig.testSuite
This package holds more than this page lists. See all of its files in its world.
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 matchesT·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, andrequest("clear")removes every root it spawned. The test enters play itself and leaves it withengine.discardPlayChanges().
Run it in edit mode: zero tests run crashRig.