Expand description
Flying what an OpenRocket .ork file says about staging and recovery.
hpr_io reads each of a .ork file’s powered separations as an hpr_io::ork::Staging,
naming the motor it is timed from by its mount, since hpr_io does not depend on hpr_sim.
separation turns one into the flight’s hpr_sim::Separation, naming that motor by its
index among the assembled motors, and separations a configuration’s list. The flight also
needs a recovery device on each of the bodies the separations make (the decision record on
staging, ADR-074):
separated_recovery puts the file’s devices on their parts and adds the tumbles, as
hpr sim flies it; the example ork_two_stage in this crate shows the pieces. The decision record for reading a .ork file’s
staging is ADR-076.
Structs§
Enums§
- Never
Deploys - Why a
.ork’s recovery device never deploys in a configuration. - Recovery
Refused - A
.orkconfiguration’s recovery thatrecoverydoes not fly.
Constants§
- OPENROCKET_
PARACHUTE_ DRAG_ COEFFICIENT - OpenRocket’s drag coefficient for a parachute whose
<cd>isauto, on the canopy’s areaπ D²/4,Dits diameter: the OpenRocket technical documentation v13.05, §4.2.5, citing S. F. Hoerner, Fluid-Dynamic Drag (1965), p. 13-23. OpenRocket 24.12 reads it back (validation/fixtures/ork/openrocket-events.json).
Functions§
- recovery
- The flight’s devices for the parachutes and streamers of
rocket, as the.orkfile’srecoverystates them, in the configurationassemblyholds assembled: each as OpenRocket flies it (the OpenRocket technical documentation v13.05, §4.2.5; ADR-153, the decision to fly them so). - separated_
recovery - The flight’s devices for a
.orkconfiguration that separates atseparations, in the order they fire (separationsmakes them):recovery’s mapping, each device on the part that carries it, with the tumblestumblingadds so that each part has drag from the moment it flies alone (the decision record on a powered separation inhpr sim, ADR-159). - separation
- The flight’s separation for
staging, with the motors ofassembly, the configuration the.orkfile’s staging belongs to, assembled. - separations
- The flight’s separations for
stagings, in the order they fire (hpr_io::ork::MotorConfiguration::stagings), each asseparationmaps it; give them tohpr_sim::Simulation::with_separations. - tumbling
deviceswith a tumble added for each part ofseparationsthat needs one: the flight flies a separated part as a point with no airframe drag of its own, so each part must have a device open from the moment it flies alone (hpr_sim::Simulation::with_separations).