pub struct LoopSignals {
pub setpoint: f32,
pub error: f32,
pub saturated: bool,
pub rate_radps: f32,
pub last_moment: f32,
}Expand description
What the host tells a probe about its loop each tick, before the loop’s controller runs.
Fields§
§setpoint: f32The loop’s setpoint this tick, as its controller would see it (a saturated angle, a heading).
error: f32The error the loop acts on: setpoint − measurement (wrapped for a heading).
saturated: boolWhether the loop’s output, or the loop under it, was clipped on the last tick.
rate_radps: f32The loop’s axis’s body rate this tick, unfiltered, in rad/s: the identify probe fits the
airframe from it. A copter’s rate loop measures the rate through the gyro low-pass
instead (measurement).
last_moment: f32The loop’s axis’s moment command on the last tick, normalized to [-1, 1]: as
commanded, before the mixer; a clip shows in saturated.
Implementations§
Source§impl LoopSignals
impl LoopSignals
Sourcepub fn measurement(&self) -> f32
pub fn measurement(&self) -> f32
The measurement: setpoint − error, consistent with the setpoint even for a wrapped
heading.
Trait Implementations§
Source§impl Clone for LoopSignals
impl Clone for LoopSignals
impl Copy for LoopSignals
Source§impl Debug for LoopSignals
impl Debug for LoopSignals
Source§impl Default for LoopSignals
impl Default for LoopSignals
Source§impl PartialEq for LoopSignals
impl PartialEq for LoopSignals
impl StructuralPartialEq for LoopSignals
Auto Trait Implementations§
impl Freeze for LoopSignals
impl RefUnwindSafe for LoopSignals
impl Send for LoopSignals
impl Sync for LoopSignals
impl Unpin for LoopSignals
impl UnsafeUnpin for LoopSignals
impl UnwindSafe for LoopSignals
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.