pub struct LinearMotor {
pub attraction: f64,
pub pole_pitch: f64,
}Expand description
An ironcore linear motor: the forcer on the carriage, the magnet track along the axis. Config [linear_motor]:
attraction_force_n (between forcer and magnets, on the guide), pole_pitch_m (north to north, the period of the
cogging). The force constant, resistance and the rest are the drive’s [motor] values, read with N for N m and m for
rad.
Fields§
§attraction: f64§pole_pitch: f64Implementations§
Source§impl LinearMotor
impl LinearMotor
pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>
Sourcepub fn cogging_order(&self) -> f64
pub fn cogging_order(&self) -> f64
The cogging’s order for mech::Ripple, whose angle is here the forcer’s position: one period per pole pitch.
Trait Implementations§
Source§impl Clone for LinearMotor
impl Clone for LinearMotor
Source§fn clone(&self) -> LinearMotor
fn clone(&self) -> LinearMotor
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 LinearMotor
impl Debug for LinearMotor
Source§impl PartialEq for LinearMotor
impl PartialEq for LinearMotor
Source§fn eq(&self, other: &LinearMotor) -> bool
fn eq(&self, other: &LinearMotor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinearMotor
Auto Trait Implementations§
impl Freeze for LinearMotor
impl RefUnwindSafe for LinearMotor
impl Send for LinearMotor
impl Sync for LinearMotor
impl Unpin for LinearMotor
impl UnsafeUnpin for LinearMotor
impl UnwindSafe for LinearMotor
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