pub enum DirectCommand {
DutyCycle(f64),
Current(f64),
BrakeCurrent(f64),
Velocity(i32),
Position(f64),
SetOrigin(OriginMode),
PositionVelocity {
position_degrees: f64,
velocity_erpm: i32,
acceleration_erpm_per_sec: i32,
},
}Variants§
DutyCycle(f64)
Current(f64)
BrakeCurrent(f64)
Velocity(i32)
Position(f64)
SetOrigin(OriginMode)
PositionVelocity
Implementations§
Source§impl DirectCommand
impl DirectCommand
pub const fn mode(self) -> ControlMode
pub fn payload(self) -> DirectPayload
Trait Implementations§
Source§impl Clone for DirectCommand
impl Clone for DirectCommand
impl Copy for DirectCommand
Source§impl Debug for DirectCommand
impl Debug for DirectCommand
Source§impl PartialEq for DirectCommand
impl PartialEq for DirectCommand
impl StructuralPartialEq for DirectCommand
Auto Trait Implementations§
impl Freeze for DirectCommand
impl RefUnwindSafe for DirectCommand
impl Send for DirectCommand
impl Sync for DirectCommand
impl Unpin for DirectCommand
impl UnsafeUnpin for DirectCommand
impl UnwindSafe for DirectCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more