pub enum Path {
Free,
Line,
Circle,
}Expand description
The path a Segment::Rotate holds while it turns, laid out from where the segment
begins. Flying rates alone, a roll sinks as its lift tips over and a loop stretches as it
speeds up coming down; holding a path, the ManeuverRunner steers back toward it with
pitch and yaw rate on top of the segment’s own rate, harder the further off it is
(PathConfig).
This is ArduPilot’s scripted aerobatics’ correction
(libraries/AP_Scripting/applets/Aerobatics/FixedWing/plane_aerobatics.lua:2615-2645 at
3d24375): only the error across the path counts, a PD turns it into an acceleration, and
the acceleration divided by the speed is the turn rate, in pitch and yaw, never roll.
Variants§
Free
No path: the segment’s rates alone, as a doublet measures them.
Line
The straight line along the direction of travel at the start: a roll keeps its height and its line.
Circle
The circle its RateLaw::Radius turns about its axis, tangent to the nose at the
start: a loop about pitch (center above the canopy, or below it for a negative radius),
a flat circle about yaw. Needs a radius and a pitch or yaw axis.
Trait Implementations§
impl Copy for Path
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.