#[repr(C)]pub struct pid {
pub kp: float,
pub ki: float,
pub kd: float,
pub summax: float,
pub summin: float,
pub sum: float,
pub outmax: float,
pub outmin: float,
pub out: float,
pub fdb: float,
pub err: float,
/* private fields */
}
Expand description
proportional integral derivative controller
Fields§
§kp: float
proportional constant
ki: float
integral constant
kd: float
derivative constant
summax: float
maximum integral output
summin: float
minimum integral output
sum: float
controller integral output
outmax: float
maximum final output
outmin: float
minimum final output
out: float
controller final output
fdb: float
cache feedback
err: float
cache error
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for pid
impl Send for pid
impl Sync for pid
impl Unpin for pid
impl UnwindSafe for pid
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