Enum drs_0x01::prelude::JogMode[][src]

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

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

Variants

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

Fields of Normal

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

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

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

Trait Implementations

impl Debug for JogMode
[src]

Formats the value using the given formatter. Read more

impl Default for JogMode
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for JogMode

impl Sync for JogMode