Struct nyx_space::dynamics::spacecraft::SpacecraftDynamics[][src]

pub struct SpacecraftDynamics<'a> {
    pub orbital_dyn: Arc<OrbitalDynamics<'a>>,
    pub force_models: Vec<Arc<dyn ForceModel + 'a>>,
    pub ctrl: Option<Arc<dyn ThrustControl + 'a>>,
    pub decrement_mass: bool,
}

Fields

orbital_dyn: Arc<OrbitalDynamics<'a>>force_models: Vec<Arc<dyn ForceModel + 'a>>ctrl: Option<Arc<dyn ThrustControl + 'a>>decrement_mass: bool

Implementations

Initialize a Spacecraft with a set of orbital dynamics and a propulsion subsystem. By default, the mass of the vehicle will be decremented as propellant is consummed.

Initialize a Spacecraft with a set of orbital dynamics and a propulsion subsystem. Will not decrement the fuel mass as propellant is consummed.

Initialize a Spacecraft with a set of orbital dynamics and with SRP enabled.

Initialize a Spacecraft with a set of orbital dynamics and with SRP enabled.

Initialize new spacecraft dynamics with the provided orbital mechanics and with the provided force model.

Initialize new spacecraft dynamics with a vector of force models.

Add a model to the currently defined spacecraft dynamics

Clone these dynamics and add a model to the currently defined orbital dynamics

A shortcut to spacecraft.ctrl if the control is defined

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The state of the associated hyperdual state, almost always StateType + U1

Optionally performs some final changes after each successful integration of the equations of motion. For example, this can be used to update the GNC mode. Read more

Defines the equations of motion for these dynamics, or a combination of provided dynamics. The time delta_t is in seconds PAST the context epoch. The state vector is the state which changes for every intermediate step of the integration. The state context is the state of what is being propagated, it should allow rebuilding a new state context from the provided state vector. Read more

Defines the equations of motion for Dual numbers for these dynamics. All dynamics need to allow for automatic differentiation. However, if differentiation is not supported, then the dynamics should prevent initialization with a context which has an STM defined. Read more

Computes both the state and the gradient of the dynamics. This function is pre-implemented.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.