pub struct PositionDerivativeDependentPIDKValues {
pub position: PIDKValues,
pub velocity: PIDKValues,
pub acceleration: PIDKValues,
}Expand description
A set of PID k-values for controlling each position derivative.
Fields§
§position: PIDKValuesUse these k-values when controlling position.
velocity: PIDKValuesUse these k-values when controlling velocity.
acceleration: PIDKValuesUse these k-values when controlling acceleration.
Implementations§
Source§impl PositionDerivativeDependentPIDKValues
impl PositionDerivativeDependentPIDKValues
Sourcepub const fn new(
position: PIDKValues,
velocity: PIDKValues,
acceleration: PIDKValues,
) -> Self
pub const fn new( position: PIDKValues, velocity: PIDKValues, acceleration: PIDKValues, ) -> Self
Constructor for PositionDerivativeDependentPIDKValues.
Sourcepub const fn get_k_values(
&self,
position_derivative: PositionDerivative,
) -> PIDKValues
pub const fn get_k_values( &self, position_derivative: PositionDerivative, ) -> PIDKValues
Get the k-values for a specific position derivative.
Trait Implementations§
Source§impl Clone for PositionDerivativeDependentPIDKValues
impl Clone for PositionDerivativeDependentPIDKValues
Source§fn clone(&self) -> PositionDerivativeDependentPIDKValues
fn clone(&self) -> PositionDerivativeDependentPIDKValues
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 moreimpl Copy for PositionDerivativeDependentPIDKValues
impl NotDatum for PositionDerivativeDependentPIDKValues
impl StructuralPartialEq for PositionDerivativeDependentPIDKValues
Auto Trait Implementations§
impl Freeze for PositionDerivativeDependentPIDKValues
impl RefUnwindSafe for PositionDerivativeDependentPIDKValues
impl Send for PositionDerivativeDependentPIDKValues
impl Sync for PositionDerivativeDependentPIDKValues
impl Unpin for PositionDerivativeDependentPIDKValues
impl UnsafeUnpin for PositionDerivativeDependentPIDKValues
impl UnwindSafe for PositionDerivativeDependentPIDKValues
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