pub enum DriveMode {
Position,
Velocity(f64),
Torque(f64),
}Expand description
How a drive takes its command, as a servo drive’s operating modes. Position: the controller’s plan through the
position and velocity loops (the default). Velocity: a speed setpoint from outside, rad/s at the motor, for the
velocity loop; the position loop is bypassed. Torque: a torque setpoint from outside, N m at the motor, in place of
the velocity loop’s output; both loops are bypassed. Either way the setpoint still passes the torque filter, notch,
torque limit and delay, the current loop, the winding and the DC link. Outside position mode the position setpoint
tracks the measured position (no following error), as a drive’s tracking mode does.
Variants§
Trait Implementations§
impl Copy for DriveMode
Source§impl<'de> Deserialize<'de> for DriveMode
impl<'de> Deserialize<'de> for DriveMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DriveMode
Auto Trait Implementations§
impl Freeze for DriveMode
impl RefUnwindSafe for DriveMode
impl Send for DriveMode
impl Sync for DriveMode
impl Unpin for DriveMode
impl UnsafeUnpin for DriveMode
impl UnwindSafe for DriveMode
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