pub struct AngleControlData<T> {
pub measurement: T,
pub rate: T,
pub dt: T,
pub integral_limit: T,
pub reset_integral: bool,
}Expand description
Control data for angle-based PID stabilization callback.
Fields§
§measurement: TThe current measured angle, calculated from sensors.
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 AngleControlData<T>
impl<T: Clone> Clone for AngleControlData<T>
Source§fn clone(&self) -> AngleControlData<T>
fn clone(&self) -> AngleControlData<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 AngleControlData<T>
impl<T: Debug> Debug for AngleControlData<T>
Source§impl<T: Default> Default for AngleControlData<T>
impl<T: Default> Default for AngleControlData<T>
Source§fn default() -> AngleControlData<T>
fn default() -> AngleControlData<T>
Returns the “default value” for a type. Read more
Source§impl<T: PartialEq> PartialEq for AngleControlData<T>
impl<T: PartialEq> PartialEq for AngleControlData<T>
impl<T: Copy> Copy for AngleControlData<T>
impl<T> StructuralPartialEq for AngleControlData<T>
Auto Trait Implementations§
impl<T> Freeze for AngleControlData<T>where
T: Freeze,
impl<T> RefUnwindSafe for AngleControlData<T>where
T: RefUnwindSafe,
impl<T> Send for AngleControlData<T>where
T: Send,
impl<T> Sync for AngleControlData<T>where
T: Sync,
impl<T> Unpin for AngleControlData<T>where
T: Unpin,
impl<T> UnwindSafe for AngleControlData<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