pub struct ManeuverConfig {
pub thrust: f32,
pub cruise_thrust: f32,
pub timeout_factor: f32,
pub path: PathConfig,
pub recovery: RecoveryConfig,
}Expand description
ManeuverRunner settings.
Fields§
§thrust: f32Thrust through Thrust::Maneuver segments (rolls, loops), [0, 1].
cruise_thrust: f32Thrust through Thrust::Cruise segments (doublets and their pause), [0, 1]: the airframe’s
level-flight thrust.
timeout_factor: f32An Angle segment ends after this many times the time its angle
takes at the rate it began with (at least 1): a turn the vehicle can’t fly, or can’t
measure, ends anyway.
path: PathConfigHow hard each segment steers back onto its Path.
recovery: RecoveryConfigThe recovery after the last segment.
Implementations§
Source§impl ManeuverConfig
impl ManeuverConfig
Sourcepub fn validate(&self) -> Result<(), InvalidConfig>
pub fn validate(&self) -> Result<(), InvalidConfig>
Ok when the thrusts are in [0, 1], the timeout factor at least 1, the path hold
valid (PathConfig::validate), the level pitch in [-π/2, π/2], and the band, rate,
settle, and timeout positive and finite.
§Errors
InvalidConfig naming the first field out of range.
Trait Implementations§
Source§impl Clone for ManeuverConfig
impl Clone for ManeuverConfig
impl Copy for ManeuverConfig
Source§impl Debug for ManeuverConfig
impl Debug for ManeuverConfig
Source§impl Default for ManeuverConfig
impl Default for ManeuverConfig
Source§fn default() -> Self
fn default() -> Self
Full thrust for aerobatics (a loop climbs on it, and on a tailsitter a roll needs the
propwash’s authority), PlaneGuidanceConfig’s
default cruise thrust (0.5), a timeout at twice a segment’s time, and the default path
hold and recovery.
Source§impl PartialEq for ManeuverConfig
impl PartialEq for ManeuverConfig
impl StructuralPartialEq for ManeuverConfig
Auto Trait Implementations§
impl Freeze for ManeuverConfig
impl RefUnwindSafe for ManeuverConfig
impl Send for ManeuverConfig
impl Sync for ManeuverConfig
impl Unpin for ManeuverConfig
impl UnsafeUnpin for ManeuverConfig
impl UnwindSafe for ManeuverConfig
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.