Type Definition nyx_space::dynamics::spacecraft::Spacecraft

source ·
pub type Spacecraft = BaseSpacecraft<GuidanceMode>;
Expand description

A spacecraft state

Implementations§

source§

impl Spacecraft

source

pub fn with_guidance_mode(self, mode: GuidanceMode) -> Self

Returns a copy of the state with the provided guidance mode

source

pub fn mode(&self) -> GuidanceMode

source

pub fn mut_mode(&mut self, mode: GuidanceMode)

Trait Implementations§

source§

impl EstimateFrom<BaseSpacecraft<GuidanceMode>> for Spacecraft

source§

fn extract(from: Spacecraft) -> Self

From the state extract the state to be estimated
source§

impl InterpState for Spacecraft

source§

fn params() -> Vec<StateParameter>

Return the parameters in order
source§

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>

Sets the requested parameter
source§

fn deriv(&self, param: &StateParameter) -> Result<f64, NyxError>

Return the time derivative requested parameter