#[non_exhaustive]pub struct ZeroVelocityCommand {
pub kd_scale: Option<f32>,
}Expand description
Zero-velocity mode command.
See PositionCommand for an example of building and serializing commands.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kd_scale: Option<f32>Kd scale factor for damping
Implementations§
Source§impl ZeroVelocityCommand
impl ZeroVelocityCommand
Sourcepub fn serialize(&self, frame: &mut CanFdFrame, format: &ZeroVelocityFormat)
pub fn serialize(&self, frame: &mut CanFdFrame, format: &ZeroVelocityFormat)
Serializes this command to a CAN frame.
Trait Implementations§
Source§impl Clone for ZeroVelocityCommand
impl Clone for ZeroVelocityCommand
Source§fn clone(&self) -> ZeroVelocityCommand
fn clone(&self) -> ZeroVelocityCommand
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 Debug for ZeroVelocityCommand
impl Debug for ZeroVelocityCommand
Source§impl Default for ZeroVelocityCommand
impl Default for ZeroVelocityCommand
Source§fn default() -> ZeroVelocityCommand
fn default() -> ZeroVelocityCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ZeroVelocityCommand
impl RefUnwindSafe for ZeroVelocityCommand
impl Send for ZeroVelocityCommand
impl Sync for ZeroVelocityCommand
impl Unpin for ZeroVelocityCommand
impl UnsafeUnpin for ZeroVelocityCommand
impl UnwindSafe for ZeroVelocityCommand
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