pub enum DiscreteIntegrationMethod {
ForwardEuler,
BackwardEuler,
Trapezoidal,
}Expand description
How the integral action’s own discrete integrator advances — see each variant’s own
recursion in DiscretePid::step. Verified directly against the source manual’s own PDF
(not the initial, swapped automated conversion — see this module’s own doc comment).
Variants§
ForwardEuler
y[k] = y[k-1] + T*e[k-1] — no direct feedthrough (y[k] never references e[k]).
BackwardEuler
y[k] = y[k-1] + T*e[k] — direct feedthrough.
Trapezoidal
y[k] = y[k-1] + (T/2)*(e[k-1]+e[k]) — direct feedthrough.
Implementations§
Trait Implementations§
Source§impl Clone for DiscreteIntegrationMethod
impl Clone for DiscreteIntegrationMethod
impl Copy for DiscreteIntegrationMethod
Source§impl Debug for DiscreteIntegrationMethod
impl Debug for DiscreteIntegrationMethod
impl Eq for DiscreteIntegrationMethod
impl StructuralPartialEq for DiscreteIntegrationMethod
Auto Trait Implementations§
impl Forget for DiscreteIntegrationMethod
impl Freeze for DiscreteIntegrationMethod
impl Move for DiscreteIntegrationMethod
impl RefUnwindSafe for DiscreteIntegrationMethod
impl Send for DiscreteIntegrationMethod
impl Sync for DiscreteIntegrationMethod
impl Unpin for DiscreteIntegrationMethod
impl UnsafeUnpin for DiscreteIntegrationMethod
impl UnwindSafe for DiscreteIntegrationMethod
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