pub struct LoopMargins {
pub crossover_hz: f64,
pub phase_margin_deg: f64,
pub gain_margin_db: f64,
pub valid: bool,
pub peak_sensitivity: f64,
pub peak_frequency_hz: f64,
pub hammering: Option<Hammering>,
pub play_margin_db: f64,
}Expand description
What an open-loop response says about the stability of the loop.
Fields§
§crossover_hz: f64The gain crossover (|L| = 1) with the smallest phase margin; NaN without one.
phase_margin_deg: f64The angle between L and -1 at that crossover (180 degrees plus the phase of L, the phase unwrapped along the
frequency axis and taken between -270 and 90 degrees at the first point, by whole turns to between -180 and 180,
either sign), the smallest over the crossovers; NaN without a crossover in the measured band (not measurable,
not infinite: nothing is known beyond the band). Negative where L encircles -1 (gain_margin_db negative):
the loop is unstable.
gain_margin_db: f64By how much the gain may rise before L reaches -1, in dB, at the worst crossing of the negative real axis where the phase falls through -180 degrees and that a later rising crossing beyond -1 does not undo; infinite without one. Negative where |L| > 1 there: the loop encircles -1 and is unstable. A falling crossing beyond -1 that a rising one undoes (the integrators turn the phase past -180 degrees below the crossover and it comes back) is the conditionally stable kind: a gain that falls would be the danger there.
valid: boolFalse when a point of the measurement was not valid (LoopPoint with NaN: the torque limit was hit or the
loop moved on its own); the margins are then NaN, and a check fails.
peak_sensitivity: f64The highest sensitivity |S| measured, and where. 1 / |S| is the shortest distance of L from -1: |S| <= 2 guarantees a gain margin of at least 6 dB and a phase margin of at least 29 degrees.
peak_frequency_hz: f64§hammering: Option<Hammering>The loop hammers across its gearbox’s play (backlash_hammering), which the response does not show; None
from loop_margins alone, velocity_loop_margins runs the check.
play_margin_db: f64With a gearbox’s play in the loop: by how much the gain may rise before the loop hammers across it, in dB, the
describing function’s margin (play_margin). NaN without play acting on the loop and from loop_margins alone;
negative: the loop crosses -1 at some amplitude of the swing across the play.
Implementations§
Trait Implementations§
Source§impl Clone for LoopMargins
impl Clone for LoopMargins
Source§fn clone(&self) -> LoopMargins
fn clone(&self) -> LoopMargins
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LoopMargins
Source§impl Debug for LoopMargins
impl Debug for LoopMargins
Source§impl PartialEq for LoopMargins
impl PartialEq for LoopMargins
Source§fn eq(&self, other: &LoopMargins) -> bool
fn eq(&self, other: &LoopMargins) -> bool
self and other values to be equal, and is used by ==.