#[repr(C)]pub struct pid_fuzzy {
pub pid: pid,
pub kp: float,
pub ki: float,
pub kd: float,
/* private fields */
}
Expand description
fuzzy proportional integral derivative controller
Fields§
§pid: pid
proportional integral derivative controller
kp: float
base proportional constant
ki: float
base integral constant
kd: float
base derivative constant
Implementations§
source§impl pid_fuzzy
impl pid_fuzzy
sourcepub fn rule(
&mut self,
col: usize,
me: &[float],
mec: &[float],
mkp: &[float],
mki: &[float],
mkd: &[float]
) -> &mut Self
pub fn rule( &mut self, col: usize, me: &[float], mec: &[float], mkp: &[float], mki: &[float], mkd: &[float] ) -> &mut Self
set rule base for fuzzy PID controller
sourcepub fn kpid(&mut self, kp: float, ki: float, kd: float) -> &mut Self
pub fn kpid(&mut self, kp: float, ki: float, kd: float) -> &mut Self
set proportional integral derivative constant for fuzzy PID controller
sourcepub fn set_block(&mut self, ptr: &mut [u8], num: usize) -> &mut Self
pub fn set_block(&mut self, ptr: &mut [u8], num: usize) -> &mut Self
set memory block for fuzzy PID controller
sourcepub fn op(&mut self, op: c_uint) -> &mut Self
pub fn op(&mut self, op: c_uint) -> &mut Self
set fuzzy relational operator for fuzzy PID controller
sourcepub fn pos(&mut self, set: float, fdb: float) -> float
pub fn pos(&mut self, set: float, fdb: float) -> float
calculate for positional fuzzy PID controller
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for pid_fuzzy
impl !Send for pid_fuzzy
impl !Sync for pid_fuzzy
impl Unpin for pid_fuzzy
impl UnwindSafe for pid_fuzzy
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