#[non_exhaustive]pub struct Variant {
pub correction: Option<Correction>,
pub tip_off: bool,
pub still_air: bool,
}Expand description
A public flight flown beside its report’s flight: with or without a Correction, with or
without the tip-off phase (Simulation::with_tip_off; what it moves on the real
flights),
and in its report’s wind or in still air. Everything else is as the flight’s report flies
it: still air keeps the report’s air (its pressure, temperature and density) and takes out
only the wind. With no correction, no phase and the report’s wind it is that report’s flight
itself.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.correction: Option<Correction>The correction flown, or none: the motors and the drag as the report flies them.
tip_off: boolWhether the flight flies the tip-off phase.
still_air: boolWhether the wind is taken out: what the phase moves in still air is gravity’s part alone.
Implementations§
Source§impl Variant
impl Variant
Sourcepub const STILL_GUIDED: Self
pub const STILL_GUIDED: Self
Variant::GUIDED in still air.
Sourcepub const STILL_TIP_OFF: Self
pub const STILL_TIP_OFF: Self
Variant::TIP_OFF in still air.
Sourcepub fn corrected(correction: Correction) -> Self
pub fn corrected(correction: Correction) -> Self
correction flown, without the tip-off phase.
Sourcepub fn environment(&self, environment: Environment) -> Environment
pub fn environment(&self, environment: Environment) -> Environment
environment with its wind taken out if the variant asks for still air.
Sourcepub fn rocket(&self, rocket: &Rocket) -> Result<Option<Rocket>, AnalysisError>
pub fn rocket(&self, rocket: &Rocket) -> Result<Option<Rocket>, AnalysisError>
rocket as Correction::rocket scales it, or None with no correction: the rocket as
given.
§Errors
Sourcepub fn simulation(&self, simulation: Simulation) -> Result<Simulation, SimError>
pub fn simulation(&self, simulation: Simulation) -> Result<Simulation, SimError>
simulation with the correction’s drag scale, if any, and the tip-off phase if asked.