pub struct ClosedLoopStep<T> {
pub plant: ClosedLoopPlant<T>,
pub gains: ClosedLoopGains<T>,
}Expand description
One closed-loop regulation step with partial state measurement.
Fields§
§plant: ClosedLoopPlant<T>§gains: ClosedLoopGains<T>Implementations§
Source§impl<T: NabledReal + LuProviderScalar> ClosedLoopStep<T>
impl<T: NabledReal + LuProviderScalar> ClosedLoopStep<T>
Sourcepub fn design(
plant: ClosedLoopPlant<T>,
q_cost: &Array2<T>,
r_cost: &Array2<T>,
observer_poles: &[T],
) -> Result<Self, SimError>
pub fn design( plant: ClosedLoopPlant<T>, q_cost: &Array2<T>, r_cost: &Array2<T>, observer_poles: &[T], ) -> Result<Self, SimError>
Design LQR gain and Luenberger observer from cost matrices and observer poles.
Sourcepub fn step(&self, state: &mut ClosedLoopState<T>) -> Result<T, SimError>
pub fn step(&self, state: &mut ClosedLoopState<T>) -> Result<T, SimError>
Advance plant and observer by one step; returns control input u.
Trait Implementations§
Source§impl<T: Clone> Clone for ClosedLoopStep<T>
impl<T: Clone> Clone for ClosedLoopStep<T>
Source§fn clone(&self) -> ClosedLoopStep<T>
fn clone(&self) -> ClosedLoopStep<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ClosedLoopStep<T>
impl<T: Debug> Debug for ClosedLoopStep<T>
Source§impl<T: PartialEq> PartialEq for ClosedLoopStep<T>
impl<T: PartialEq> PartialEq for ClosedLoopStep<T>
Source§fn eq(&self, other: &ClosedLoopStep<T>) -> bool
fn eq(&self, other: &ClosedLoopStep<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for ClosedLoopStep<T>
Auto Trait Implementations§
impl<T> Freeze for ClosedLoopStep<T>
impl<T> RefUnwindSafe for ClosedLoopStep<T>where
T: RefUnwindSafe,
impl<T> Send for ClosedLoopStep<T>where
T: Send,
impl<T> Sync for ClosedLoopStep<T>where
T: Sync,
impl<T> Unpin for ClosedLoopStep<T>
impl<T> UnsafeUnpin for ClosedLoopStep<T>
impl<T> UnwindSafe for ClosedLoopStep<T>where
T: RefUnwindSafe,
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