pub enum DesignError {
NotALag,
NoCrossover,
AngleUnstable,
NoWingDesign,
}Expand description
Why a design found no gains.
Variants§
NotALag
The fitted pole isn’t a lag (RateModel::lag_s is None): at or past 1, the fit
grows rather than lags.
NoCrossover
The rate loop’s phase never reaches the margin, or falls past it before any frequency, or the model’s moment doesn’t push the axis the way commanded: the model has no usable crossover.
AngleUnstable
Even the least angle P misses the angle margin around the designed rate loop.
NoWingDesign
No gains on the wing design’s grid meet its targets on the fitted
WingModel, even at the slowest time constant, or the
model’s control or damping isn’t positive (WingDesign).
Trait Implementations§
Source§impl Clone for DesignError
impl Clone for DesignError
impl Copy for DesignError
Source§impl Debug for DesignError
impl Debug for DesignError
Source§impl Display for DesignError
impl Display for DesignError
impl Eq for DesignError
Source§impl Error for DesignError
impl Error for DesignError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DesignError
impl PartialEq for DesignError
impl StructuralPartialEq for DesignError
Auto Trait Implementations§
impl Forget for DesignError
impl Freeze for DesignError
impl Move for DesignError
impl RefUnwindSafe for DesignError
impl Send for DesignError
impl Sync for DesignError
impl Unpin for DesignError
impl UnsafeUnpin for DesignError
impl UnwindSafe for DesignError
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.