[][src]Enum drs_0x01::JogMode

pub enum JogMode {
    Normal {
        position: u16,
    },
    Continuous {
        speed: u16,
        rotation: Rotation,
    },
}

This represent the servomotor control mode. The servomotor is either controlled in Position or Speed.

Variants

Normal

Control the servomotor by position. Make sure that the position is in range for your servomotor.

Fields of Normal

position: u16

The calibrated position. The value must be in the 0..1023 range

Continuous

Control the servomotor by speed. Make sur that you respect the maximum speed. The 14th bit represent the sign, if it set the servomotor will rotate the other way.

Fields of Continuous

speed: u16

The desired PWM value. The value must be in the 0..1023 range

rotation: Rotation

Inverts the rotation sense of the servo by modifying the 14th bit.

Trait Implementations

impl Debug for JogMode[src]

impl Default for JogMode[src]

Auto Trait Implementations

impl Send for JogMode

impl Sync for JogMode

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err