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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more