Expand description
This represent the servomotor control mode.
The servomotor is either controlled in Position
or Speed
.
Variants
Normal
Fields
position: u16
The calibrated position. The value must be in the 0..1023 range
Control the servomotor by position. Make sure that the position is in range for your servomotor.
Continuous
Fields
speed: u16
The desired PWM value. 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JogMode
impl Send for JogMode
impl Sync for JogMode
impl Unpin for JogMode
impl UnwindSafe for JogMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more