#[repr(C)]pub struct pid_neuro {
pub pid: pid,
pub k: float,
pub wp: float,
pub wi: float,
pub wd: float,
pub ec: float,
}
Expand description
single neuron proportional integral derivative controller
Fields§
§pid: pid
proportional integral derivative controller
k: float
proportional coefficient
wp: float
proportional weight
wi: float
integral weight
wd: float
derivative weight
ec: float
error change
Implementations§
source§impl pid_neuro
impl pid_neuro
sourcepub fn kpid(&mut self, k: float, kp: float, ki: float, kd: float) -> &mut Self
pub fn kpid(&mut self, k: float, kp: float, ki: float, kd: float) -> &mut Self
set proportional integral derivative constant for single neuron PID controller
sourcepub fn wpid(&mut self, wp: float, wi: float, wd: float) -> &mut Self
pub fn wpid(&mut self, wp: float, wi: float, wd: float) -> &mut Self
set proportional integral derivative weight for single neuron PID controller
sourcepub fn run(&mut self, set: float, fdb: float) -> float
pub fn run(&mut self, set: float, fdb: float) -> float
calculate for single neuron PID controller
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for pid_neuro
impl Send for pid_neuro
impl Sync for pid_neuro
impl Unpin for pid_neuro
impl UnwindSafe for pid_neuro
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