Struct nyx_space::SpacecraftState[][src]

pub struct SpacecraftState {
    pub orbit: Orbit,
    pub dry_mass_kg: f64,
    pub fuel_mass_kg: f64,
    pub thruster: Option<Thruster>,
    pub mode: GuidanceMode,
}

A spacecraft state

Fields

orbit: Orbitdry_mass_kg: f64fuel_mass_kg: f64thruster: Option<Thruster>mode: GuidanceMode

Implementations

impl SpacecraftState[src]

pub fn new(orbit: Orbit, dry_mass_kg: f64, fuel_mass_kg: f64) -> Self[src]

pub fn with_thruster(
    orbit: Orbit,
    dry_mass_kg: f64,
    fuel_mass_kg: f64,
    thruster: Thruster,
    init_mode: GuidanceMode
) -> Self
[src]

Trait Implementations

impl Add<Matrix<f64, U6, U1, <DefaultAllocator as Allocator<f64, U6, U1>>::Buffer>> for SpacecraftState[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, other: VectorN<f64, U6>) -> Self[src]

Adds the provided state deviation to this orbit

impl Add<Matrix<f64, U7, U1, <DefaultAllocator as Allocator<f64, U7, U1>>::Buffer>> for SpacecraftState[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, other: VectorN<f64, U7>) -> Self[src]

Adds the provided state deviation to this orbit

impl Clone for SpacecraftState[src]

impl Copy for SpacecraftState[src]

impl Debug for SpacecraftState[src]

impl Display for SpacecraftState[src]

impl EstimateFrom<SpacecraftState> for Orbit[src]

impl EventEvaluator<SpacecraftState> for UmbraEvent[src]

fn epoch_precision(&self) -> Duration[src]

Stop searching when the time has converged to less than 0.1 seconds

fn value_precision(&self) -> f64[src]

Finds the darkest part of an eclipse within 2% of penumbra (i.e. 98% in shadow)

impl EventEvaluator<SpacecraftState> for PenumbraEvent[src]

fn epoch_precision(&self) -> Duration[src]

Stop searching when the time has converged to less than 0.1 seconds

fn value_precision(&self) -> f64[src]

Finds the slightest penumbra within 2%(i.e. 98% in visibility)

impl EventEvaluator<SpacecraftState> for Event[src]

impl LowerExp for SpacecraftState[src]

impl MdHdlr<SpacecraftState> for OrbitStateOutput[src]

impl MeasurementDevice<SpacecraftState, StdMeasurement> for GroundStation[src]

fn measure(&self, sc_rx: &SpacecraftState) -> Option<StdMeasurement>[src]

Perform a measurement from the ground station to the receiver (rx).

impl PartialEq<SpacecraftState> for SpacecraftState[src]

impl State for SpacecraftState[src]

type Size = U7

Size of the state and its STM

type PropVecSize = U43

fn stm(&self) -> Result<MatrixN<f64, U7>, NyxError>[src]

WARNING: Currently the STM assumes that the fuel mass is constant at ALL TIMES!

impl TimeTagged for SpacecraftState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,