pub struct LateralEstimate {
pub position_m: Vec2,
pub velocity_mps: Vec2,
}Expand description
The vehicle’s current horizontal state as the LateralController consumes it, (north,
east) per the VehicleState frame contract.
§Examples
use stable_flight::Vec2;
use stable_flight::controllers::LateralEstimate;
// 4 m north, 1 m east, drifting north at 0.1 m/s.
let estimate = LateralEstimate {
position_m: Vec2::new(4.0, 1.0),
velocity_mps: Vec2::new(0.1, 0.0),
};Fields§
§position_m: Vec2Estimated position in meters.
velocity_mps: Vec2Estimated velocity in m/s.
Trait Implementations§
Source§impl Clone for LateralEstimate
impl Clone for LateralEstimate
impl Copy for LateralEstimate
Source§impl Debug for LateralEstimate
impl Debug for LateralEstimate
Source§impl PartialEq for LateralEstimate
impl PartialEq for LateralEstimate
impl StructuralPartialEq for LateralEstimate
Auto Trait Implementations§
impl Forget for LateralEstimate
impl Freeze for LateralEstimate
impl Move for LateralEstimate
impl RefUnwindSafe for LateralEstimate
impl Send for LateralEstimate
impl Sync for LateralEstimate
impl Unpin for LateralEstimate
impl UnsafeUnpin for LateralEstimate
impl UnwindSafe for LateralEstimate
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> 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.