pub fn recovery(
recovery: &Recovery,
rocket: &Rocket,
assembly: &Assembly,
) -> Result<Recovered, RecoveryRefused>Expand description
The flight’s devices for the parachutes and streamers of rocket, as the .ork file’s
recovery states them, in the configuration assembly holds assembled: each as OpenRocket
flies it (the OpenRocket technical documentation v13.05,
§4.2.5; ADR-153, the decision to fly them so).
- Drag. A parachute’s drag area is
C_D · π D²/4,Dits canopy diameter andC_Dthe file’s, orOPENROCKET_PARACHUTE_DRAG_COEFFICIENTforauto. A streamer’s is a statedC_Don its areal · w, or forautoOpenRocket’s appendix C correlation (StreamerModel::OpenRocket) from its length, width and fabric, for a strip no wider than it is long (hpr_sim::recovery::MIN_STREAMER_ASPECT_RATIO). - Opening. At once (
hpr_sim::Inflation::Instant), the file’s delay after its event. - Events.
apogeeisTrigger::Apogee;altitudeisTrigger::Altitude, which opens at apogee a device set above it, where OpenRocket’s one probed run never opened it (ADR-056 §5, the.orkreader’s probe);ejectionisTrigger::MotorDelayof the motor of the device’s stage whose charge fires first (OpenRocket’s “first ejection charge” of the stage);launchisTrigger::Timeat the delay.never, andejectionwith a motor that has no charge, give no device but aRecovered::not_deployedentry.
Every device rides the first body. For a configuration that separates under power, use
separated_recovery, which puts each on the part that carries it.
§Errors
RecoveryRefused: a device in a part hpr does not read, one deployed at a separation or
by an unknown event, at the charge of a stage with no lit motor, a part not in assembly,
or a number outside its domain.