[−][src]Enum pololu_smc::command::Command
Representations of the commands that can be sent to the controller.
These only contain the commands which do not provide any response, which can thus be used in [SimpleMotorController::send_command
]. There are some additional commands available that do provide a response. These are handled
separately by the methods [SimpleMotorController::set_motor_limit
] and [SimpleMotorController::get_firmware_version
].
Variants
If safe-start protection is enabled, this command is required before the motor can run.
Sets the full-resolution motor target speed in the forward direction.
Sets the full-resolution motor target speed in the reverse direction.
Sets the low-resolution motor target speed in the forward direction.
Sets the low-resolution motor target speed in the reverse direction.
Causes the motor to immediately brake or coast (configured deceleration limits are ignored).
This command lets you change the hardware current limit temporarily until the next reset.
Fields of SetCurrentLimit
Sets the motor target speed to zero, stopping the motor respecting the configured deceleration limits. This also makes the controller susceptible to a safe-start violation error is safe-start is enabled.
Trait Implementations
impl Clone for Command
[src]
pub fn clone(&self) -> Command
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Command
[src]
impl Debug for Command
[src]
impl Eq for Command
[src]
impl Hash for Command
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Command
[src]
pub fn cmp(&self, other: &Command) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Command> for Command
[src]
impl PartialOrd<Command> for Command
[src]
pub fn partial_cmp(&self, other: &Command) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Command) -> bool
[src]
pub fn le(&self, other: &Command) -> bool
[src]
pub fn gt(&self, other: &Command) -> bool
[src]
pub fn ge(&self, other: &Command) -> bool
[src]
impl StructuralEq for Command
[src]
impl StructuralPartialEq for Command
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,