pub struct RateControlData<T> {
pub rate: T,
pub dt: T,
pub integral_limit: T,
pub reset_integral: bool,
}Expand description
Control data for rate-based PID stabilization callback.
Fields§
§rate: TThe current rate of change, typically reported by a gyro.
dt: TThe time delta since the last computation.
integral_limit: TThe maximum allowed value for the integral term, used to prevent integral windup.
reset_integral: boolFlag to reset the integral term, typically used when the controller is inactive.
Trait Implementations§
Source§impl<T: Clone> Clone for RateControlData<T>
impl<T: Clone> Clone for RateControlData<T>
Source§fn clone(&self) -> RateControlData<T>
fn clone(&self) -> RateControlData<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for RateControlData<T>
impl<T: Debug> Debug for RateControlData<T>
Source§impl<T: Default> Default for RateControlData<T>
impl<T: Default> Default for RateControlData<T>
Source§fn default() -> RateControlData<T>
fn default() -> RateControlData<T>
Returns the “default value” for a type. Read more
Source§impl<T: PartialEq> PartialEq for RateControlData<T>
impl<T: PartialEq> PartialEq for RateControlData<T>
impl<T: Copy> Copy for RateControlData<T>
impl<T> StructuralPartialEq for RateControlData<T>
Auto Trait Implementations§
impl<T> Freeze for RateControlData<T>where
T: Freeze,
impl<T> RefUnwindSafe for RateControlData<T>where
T: RefUnwindSafe,
impl<T> Send for RateControlData<T>where
T: Send,
impl<T> Sync for RateControlData<T>where
T: Sync,
impl<T> Unpin for RateControlData<T>where
T: Unpin,
impl<T> UnwindSafe for RateControlData<T>where
T: UnwindSafe,
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