pub struct PidConfig {
pub kp: f32,
pub ki: f32,
pub kd: f32,
pub max_integral: f32,
}Expand description
Configuration parameters for a PID controller.
These gains determine the responsiveness and stability of the system.
Fields§
§kp: f32Proportional gain ($K_p$). Immediate correction based on current error.
ki: f32Integral gain ($K_i$). Corrects for steady-state error over time.
kd: f32Derivative gain ($K_d$). Dampens oscillations by reacting to error rate.
max_integral: f32Maximum absolute value for the integral accumulator (Anti-windup).
Trait Implementations§
impl Copy for PidConfig
impl StructuralPartialEq for PidConfig
Auto Trait Implementations§
impl Freeze for PidConfig
impl RefUnwindSafe for PidConfig
impl Send for PidConfig
impl Sync for PidConfig
impl Unpin for PidConfig
impl UnsafeUnpin for PidConfig
impl UnwindSafe for PidConfig
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