#[non_exhaustive]pub struct LaunchConditions {Show 18 fields
pub configuration: Option<String>,
pub rod_length_m: Option<f64>,
pub rod_angle_rad: Option<f64>,
pub rod_direction_rad: Option<f64>,
pub into_wind: Option<bool>,
pub wind_speed_m_s: Option<f64>,
pub wind_turbulence: Option<f64>,
pub wind_from_rad: Option<f64>,
pub wind_model: Option<String>,
pub wind_levels: Vec<WindLevel>,
pub wind_levels_above: Option<String>,
pub launch_altitude_m: Option<f64>,
pub latitude_deg: Option<f64>,
pub longitude_deg: Option<f64>,
pub geodetic_method: Option<String>,
pub atmosphere: Option<Atmosphere>,
pub time_step_s: Option<f64>,
pub max_time_s: Option<f64>,
}Expand description
The launch conditions a stored simulation was flown in. Each is None where the file does not
say.
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.configuration: Option<String><configid>: the motor configuration flown.
rod_length_m: Option<f64><launchrodlength>, m.
rod_angle_rad: Option<f64><launchrodangle>: the rod’s tilt from vertical, rad (the file writes degrees).
rod_direction_rad: Option<f64><launchroddirection>: the compass bearing the rod tilts toward, clockwise from north, rad
(the file writes degrees).
into_wind: Option<bool><launchintowind>: whether the rod is pointed into the wind, which OpenRocket then writes
as the rod’s direction.
wind_speed_m_s: Option<f64><windaverage>, or the average wind’s <speed>: the mean wind speed, m/s.
wind_turbulence: Option<f64><windturbulence>: the turbulence intensity, the standard deviation of the wind speed over
its mean.
wind_from_rad: Option<f64><winddirection>, or the average wind’s <direction>: the compass bearing the wind blows
from, rad (the file writes radians).
wind_model: Option<String><windmodeltype>: which wind the run flew, Average or the multilevel one. OpenRocket
writes both winds whichever it flew.
wind_levels: Vec<WindLevel><wind model="multilevel">’s levels, lowest first as written.
wind_levels_above: Option<String>The multilevel wind’s altituderef: whether its altitudes are above the ground (agl) or
the sea (msl).
launch_altitude_m: Option<f64><launchaltitude>: the launch site’s height above sea level, m.
latitude_deg: Option<f64><launchlatitude>, degrees north.
longitude_deg: Option<f64><launchlongitude>, degrees east.
geodetic_method: Option<String><geodeticmethod>: flat, spherical or wgs84.
atmosphere: Option<Atmosphere><atmosphere>.
time_step_s: Option<f64><timestep>, s.
max_time_s: Option<f64><maxtime>, s.
Trait Implementations§
Source§impl Clone for LaunchConditions
impl Clone for LaunchConditions
Source§fn clone(&self) -> LaunchConditions
fn clone(&self) -> LaunchConditions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LaunchConditions
impl Debug for LaunchConditions
Source§impl Default for LaunchConditions
impl Default for LaunchConditions
Source§fn default() -> LaunchConditions
fn default() -> LaunchConditions
Source§impl<'de> Deserialize<'de> for LaunchConditions
impl<'de> Deserialize<'de> for LaunchConditions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for LaunchConditions
impl JsonSchema for LaunchConditions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for LaunchConditions
impl PartialEq for LaunchConditions
Source§fn eq(&self, other: &LaunchConditions) -> bool
fn eq(&self, other: &LaunchConditions) -> bool
self and other values to be equal, and is used by ==.