Struct nyx_space::od::estimate::SpacecraftUncertainty
source · pub struct SpacecraftUncertainty {
pub nominal: Spacecraft,
pub frame: Option<LocalFrame>,
pub x_km: f64,
pub y_km: f64,
pub z_km: f64,
pub vx_km_s: f64,
pub vy_km_s: f64,
pub vz_km_s: f64,
pub cr: f64,
pub cd: f64,
pub mass_kg: f64,
}
Expand description
Builds a spacecraft uncertainty in different local frames, dispersing any of the parameters of the spacecraft state.
§Usage
Use the TypeBuilder
trait, e.g SpacecraftUncertainty::builder().nominal(spacecraft).frame(LocalFrame::RIC).x_km(0.5).y_km(0.5).z_km(0.5).build()
to build an uncertainty on position in the RIC frame of 500 meters on R, I, and C, and zero on all other parameters (velocity components, Cr, Cd, mass).
Fields§
§nominal: Spacecraft
§frame: Option<LocalFrame>
§x_km: f64
§y_km: f64
§z_km: f64
§vx_km_s: f64
§vy_km_s: f64
§vz_km_s: f64
§cr: f64
§cd: f64
§mass_kg: f64
Implementations§
source§impl SpacecraftUncertainty
impl SpacecraftUncertainty
sourcepub fn builder(
) -> SpacecraftUncertaintyBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> SpacecraftUncertaintyBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SpacecraftUncertainty
.
On the builder, call .nominal(...)
, .frame(...)
(optional), .x_km(...)
(optional), .y_km(...)
(optional), .z_km(...)
(optional), .vx_km_s(...)
(optional), .vy_km_s(...)
(optional), .vz_km_s(...)
(optional), .cr(...)
(optional), .cd(...)
(optional), .mass_kg(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SpacecraftUncertainty
.
source§impl SpacecraftUncertainty
impl SpacecraftUncertainty
sourcepub fn to_estimate(&self) -> PhysicsResult<KfEstimate<Spacecraft>>
pub fn to_estimate(&self) -> PhysicsResult<KfEstimate<Spacecraft>>
Builds a Kalman filter estimate for a spacecraft state, ready to ingest into an OD Process.
Note: this function will rotate from the provided local frame into the inertial frame with the same central body.
Trait Implementations§
source§impl Clone for SpacecraftUncertainty
impl Clone for SpacecraftUncertainty
source§fn clone(&self) -> SpacecraftUncertainty
fn clone(&self) -> SpacecraftUncertainty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SpacecraftUncertainty
impl Debug for SpacecraftUncertainty
source§impl Display for SpacecraftUncertainty
impl Display for SpacecraftUncertainty
impl Copy for SpacecraftUncertainty
Auto Trait Implementations§
impl Freeze for SpacecraftUncertainty
impl RefUnwindSafe for SpacecraftUncertainty
impl Send for SpacecraftUncertainty
impl Sync for SpacecraftUncertainty
impl Unpin for SpacecraftUncertainty
impl UnwindSafe for SpacecraftUncertainty
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.