Enum nyx_space::dynamics::spacecraft::GuidanceMode
source · [−]pub enum GuidanceMode {
Coast,
Thrust,
Inhibit,
Custom(u8),
}
Variants
Coast
Guidance is turned off and Guidance Law may switch mode to Thrust for next call
Thrust
Guidance is turned on and Guidance Law may switch mode to Coast for next call
Inhibit
Guidance is turned off and Guidance Law may not change its mode (will need to be done externally to the guidance law).
Custom(u8)
Trait Implementations
sourceimpl Clone for GuidanceMode
impl Clone for GuidanceMode
sourcefn clone(&self) -> GuidanceMode
fn clone(&self) -> GuidanceMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GuidanceMode
impl Debug for GuidanceMode
sourceimpl Default for GuidanceMode
impl Default for GuidanceMode
sourceimpl GuidanceLaw<GuidanceMode> for FiniteBurns
impl GuidanceLaw<GuidanceMode> for FiniteBurns
sourcefn direction(&self, osc: &Spacecraft) -> Vector3<f64>
fn direction(&self, osc: &Spacecraft) -> Vector3<f64>
Returns a unit vector corresponding to the thrust direction in the inertial frame.
sourcefn throttle(&self, osc: &Spacecraft) -> f64
fn throttle(&self, osc: &Spacecraft) -> f64
Returns a number between [0;1] corresponding to the engine throttle level. For example, 0 means coasting, i.e. no thrusting, and 1 means maximum thrusting. Read more
sourcefn next(&self, sc: &mut Spacecraft)
fn next(&self, sc: &mut Spacecraft)
Updates the state of the spacecraft for the next maneuver, e.g. prepares the controller for the next maneuver
sourceimpl GuidanceLaw<GuidanceMode> for Mnvr
impl GuidanceLaw<GuidanceMode> for Mnvr
sourcefn direction(&self, osc: &Spacecraft) -> Vector3<f64>
fn direction(&self, osc: &Spacecraft) -> Vector3<f64>
Returns a unit vector corresponding to the thrust direction in the inertial frame.
sourcefn throttle(&self, osc: &Spacecraft) -> f64
fn throttle(&self, osc: &Spacecraft) -> f64
Returns a number between [0;1] corresponding to the engine throttle level. For example, 0 means coasting, i.e. no thrusting, and 1 means maximum thrusting. Read more
sourcefn next(&self, sc: &mut Spacecraft)
fn next(&self, sc: &mut Spacecraft)
Updates the state of the spacecraft for the next maneuver, e.g. prepares the controller for the next maneuver
sourceimpl GuidanceLaw<GuidanceMode> for Ruggiero
impl GuidanceLaw<GuidanceMode> for Ruggiero
sourcefn achieved(&self, state: &Spacecraft) -> Result<bool, NyxError>
fn achieved(&self, state: &Spacecraft) -> Result<bool, NyxError>
Returns whether the guidance law has achieved all goals
sourcefn next(&self, sc: &mut Spacecraft)
fn next(&self, sc: &mut Spacecraft)
Update the state for the next iteration
sourcefn direction(&self, sc: &Spacecraft) -> Vector3<f64>
fn direction(&self, sc: &Spacecraft) -> Vector3<f64>
Returns a unit vector corresponding to the thrust direction in the inertial frame.
sourcefn throttle(&self, sc: &Spacecraft) -> f64
fn throttle(&self, sc: &Spacecraft) -> f64
Returns a number between [0;1] corresponding to the engine throttle level. For example, 0 means coasting, i.e. no thrusting, and 1 means maximum thrusting. Read more
sourceimpl PartialEq<GuidanceMode> for GuidanceMode
impl PartialEq<GuidanceMode> for GuidanceMode
sourcefn eq(&self, other: &GuidanceMode) -> bool
fn eq(&self, other: &GuidanceMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GuidanceMode) -> bool
fn ne(&self, other: &GuidanceMode) -> bool
This method tests for !=
.
impl Copy for GuidanceMode
impl SpacecraftExt for GuidanceMode
impl StructuralPartialEq for GuidanceMode
Auto Trait Implementations
impl RefUnwindSafe for GuidanceMode
impl Send for GuidanceMode
impl Sync for GuidanceMode
impl Unpin for GuidanceMode
impl UnwindSafe for GuidanceMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if 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
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.