Skip to main content

Module openrocket_curves

Module openrocket_curves 

Source
Expand description

Which ThrustCurve.org data file holds the curve OpenRocket flies for a .ork motor’s digest (ADR-161): a .ork motor takes that file first, from the bundled catalog or when it is fetched, where ThrustCurve holds several files of it with different curves (ADR-288 §3).

The table, data/openrocket-curves.json, is written by cargo xtask ork-curves. It covers the motors of OpenRocket 24.12’s examples, and the motor each public flight predicted from a design file flies (ADR-337), each matched by comparing OpenRocket’s curve with every file’s; it holds ids alone, no curve. A motor whose digest it lacks takes the bundled catalog’s default file, or is fetched by name (ADR-154, fetching a motor from ThrustCurve.org by its name).

Functions§

file_for
The ThrustCurve id of the file holding OpenRocket’s curve for digest, if the table has it.