Enum BrakingMode
pub enum BrakingMode {
Normal,
Precise,
}
Expand description
When FlightMode is Braking, the agent can use different braking modes to control the amount of overshoot and oscillation.
Variants§
Normal
Oscillation around the target position is acceptable, with slow damping. This mode is useful for when the entity is not expected to fully stop at the target position, and arrival near the target position is more important than precision.
Precise
Prefer faster damping of position error, reducing overshoot and oscillation around the target position. This mode is useful for when the entity is expected to fully stop at the target and precision is most important.
Trait Implementations§
§impl Clone for BrakingMode
impl Clone for BrakingMode
§fn clone(&self) -> BrakingMode
fn clone(&self) -> BrakingMode
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 more§impl Debug for BrakingMode
impl Debug for BrakingMode
§impl Default for BrakingMode
impl Default for BrakingMode
§fn default() -> BrakingMode
fn default() -> BrakingMode
Returns the “default value” for a type. Read more
§impl PartialEq for BrakingMode
impl PartialEq for BrakingMode
impl Copy for BrakingMode
impl StructuralPartialEq for BrakingMode
Auto Trait Implementations§
impl Freeze for BrakingMode
impl RefUnwindSafe for BrakingMode
impl Send for BrakingMode
impl Sync for BrakingMode
impl Unpin for BrakingMode
impl UnwindSafe for BrakingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.