pub struct PIDController { /* private fields */ }Expand description
This is the underlying standard PID controller.
Implementations§
Source§impl PIDController
impl PIDController
pub fn new( kp: f32, ki: f32, kd: f32, setpoint: f32, p_limit: f32, i_limit: f32, d_limit: f32, output_limit: f32, sampling: CuDuration, ) -> Self
pub fn reset(&mut self)
pub fn init_measurement(&mut self, measurement: f32)
pub fn next_control_output( &mut self, measurement: f32, dt: CuDuration, ) -> PIDControlOutputPayload
Auto Trait Implementations§
impl Freeze for PIDController
impl RefUnwindSafe for PIDController
impl Send for PIDController
impl Sync for PIDController
impl Unpin for PIDController
impl UnwindSafe for PIDController
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