pub trait Controller<R: FlightFloat> {
type State;
type ControlOutput;
// Required methods
fn control(
&mut self,
state: &Self::State,
ctx: ControllerCtx<'_, R>,
) -> Self::ControlOutput;
fn update_gains(&mut self, params: &Params);
}Required Associated Types§
type State
type ControlOutput
Required Methods§
fn control( &mut self, state: &Self::State, ctx: ControllerCtx<'_, R>, ) -> Self::ControlOutput
fn update_gains(&mut self, params: &Params)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".