Type Definition nyx_space::Spacecraft
source · pub type Spacecraft = BaseSpacecraft<GuidanceMode>;
Expand description
Re-export some useful things A spacecraft state
Implementations§
source§impl Spacecraft
impl Spacecraft
sourcepub fn with_guidance_mode(self, mode: GuidanceMode) -> Self
pub fn with_guidance_mode(self, mode: GuidanceMode) -> Self
Returns a copy of the state with the provided guidance mode
pub fn mode(&self) -> GuidanceMode
pub fn mut_mode(&mut self, mode: GuidanceMode)
Trait Implementations§
source§impl EstimateFrom<BaseSpacecraft<GuidanceMode>> for Spacecraft
impl EstimateFrom<BaseSpacecraft<GuidanceMode>> for Spacecraft
source§fn extract(from: Spacecraft) -> Self
fn extract(from: Spacecraft) -> Self
From the state extract the state to be estimated
source§impl InterpState for Spacecraft
impl InterpState for Spacecraft
source§fn value_and_deriv(&self, param: &StateParameter) -> Result<(f64, f64), NyxError>
fn value_and_deriv(&self, param: &StateParameter) -> Result<(f64, f64), NyxError>
Return the requested parameter and its time derivative
source§fn set_value_and_deriv(
&mut self,
param: &StateParameter,
value: f64,
_: f64
) -> Result<(), NyxError>
fn set_value_and_deriv( &mut self, param: &StateParameter, value: f64, _: f64 ) -> Result<(), NyxError>
Sets the requested parameter