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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns a unit vector corresponding to the thrust direction in the inertial frame.

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

Updates the state of the spacecraft for the next maneuver, e.g. prepares the controller for the next maneuver

Returns whether this thrust control has been achieved, if it has an objective

Returns a unit vector corresponding to the thrust direction in the inertial frame.

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

Updates the state of the spacecraft for the next maneuver, e.g. prepares the controller for the next maneuver

Returns whether this thrust control has been achieved, if it has an objective

Returns whether the guidance law has achieved all goals

Update the state for the next iteration

Returns a unit vector corresponding to the thrust direction in the inertial frame.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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

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.