Trait Controller
msr
pub trait Controller<Input, Output> { fn next(&mut self, input: Input) -> Output; }
A generic stateful controller
fn next(&mut self, input: Input) -> Output
Calculate the next state.
impl Controller<f64, bool> for BangBang
fn next(&mut self, actual: f64) -> bool
impl<'a> Controller<(f64, &'a Duration), f64> for Pid
fn next(&mut self, input: (f64, &Duration)) -> f64