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
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 |
Trait Implementations
impl Debug for JogMode
[src]
impl Debug for JogMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for JogMode
[src]
impl Default for JogMode