pub trait Controller {
type State;
type Reference;
type Output;
// Required methods
fn compute(
&mut self,
state: &Self::State,
reference: &Self::Reference,
) -> Self::Output;
fn reset(&mut self);
}Expand description
Trait for controllers (PID, LQR, MPC, etc.)
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".