Enum nyx_space::cosmic::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§
source§impl Clone for GuidanceMode
impl Clone for GuidanceMode
source§fn clone(&self) -> GuidanceMode
fn clone(&self) -> GuidanceMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GuidanceMode
impl Debug for GuidanceMode
source§impl Default for GuidanceMode
impl Default for GuidanceMode
source§impl GuidanceLaw<GuidanceMode> for FiniteBurns
impl GuidanceLaw<GuidanceMode> for FiniteBurns
source§fn 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.
source§fn 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.
source§fn 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
source§impl GuidanceLaw<GuidanceMode> for Mnvr
impl GuidanceLaw<GuidanceMode> for Mnvr
source§fn 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.
source§fn 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.
source§fn 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
source§impl GuidanceLaw<GuidanceMode> for Ruggiero
impl GuidanceLaw<GuidanceMode> for Ruggiero
source§fn achieved(&self, state: &Spacecraft) -> Result<bool, NyxError>
fn achieved(&self, state: &Spacecraft) -> Result<bool, NyxError>
Returns whether the guidance law has achieved all goals
source§fn next(&self, sc: &mut Spacecraft)
fn next(&self, sc: &mut Spacecraft)
Update the state for the next iteration
source§fn 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.
source§fn 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.
source§impl PartialEq<GuidanceMode> for GuidanceMode
impl PartialEq<GuidanceMode> for GuidanceMode
source§fn 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 ==
.impl Copy for GuidanceMode
impl Eq for GuidanceMode
impl SpacecraftExt for GuidanceMode
impl StructuralEq 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere 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.