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.)