pub const CUT_OFF_SHARE: f64 = 0.5;Expand description
The share of its peak thrust above which a motor file’s last point says the curve was cut off,
and the .eng and .rse readers refuse it.
The RASP format says “the final point must have a thrust of zero” (docs/format/eng.md), but
real files don’t always: of the 3,585 curves the two readers read from 1,294 of the 1,301
.eng and .rse files under the project’s reference checkouts on 2026-10-25, 11 end above zero, the
highest at 10.5% of its peak (tests/reference_curves.rs prints the figures where the
checkouts are present). Those stop in the tail-off and are read, with a warning. A file cut
off during the burn stops near full thrust, and read as a motor it understates the impulse: a
G84 curve cut after 13 of its 29 points reads as an F motor. Half the peak sits nearly five times
above the highest real end. A cut where the thrust is under half its peak, in the tail-off or
in a boost-sustain motor’s sustain phase, isn’t caught, and keeps the warning; nor is a file cut
inside a number, when the digits left read as a small thrust.