pub struct LandCommand {
pub position_m: Vec2,
}Expand description
Where to land, for ControlInput::Land: guidance holds position_m while it descends.
§Examples
use stable_flight::{ControlInput, LandCommand, Vec2};
let input = ControlInput::Land(LandCommand { position_m: Vec2::new(10.0, -5.0) });Fields§
§position_m: Vec2Horizontal position to hold, in meters, in the same frame as
WaypointCommand::position_m.
Trait Implementations§
Source§impl Clone for LandCommand
impl Clone for LandCommand
impl Copy for LandCommand
Source§impl Debug for LandCommand
impl Debug for LandCommand
Source§impl Default for LandCommand
impl Default for LandCommand
Source§impl<'de> Deserialize<'de> for LandCommand
impl<'de> Deserialize<'de> for LandCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LandCommand
impl PartialEq for LandCommand
Source§impl Serialize for LandCommand
impl Serialize for LandCommand
impl StructuralPartialEq for LandCommand
Auto Trait Implementations§
impl Forget for LandCommand
impl Freeze for LandCommand
impl Move for LandCommand
impl RefUnwindSafe for LandCommand
impl Send for LandCommand
impl Sync for LandCommand
impl Unpin for LandCommand
impl UnsafeUnpin for LandCommand
impl UnwindSafe for LandCommand
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.