[][src]Enum odrive_cansimple::Signal

pub enum Signal {
    EncoderCount {
        id: AxisId,
        shadow_count: i32,
        cpr_count: i32,
    },
    EncoderError {
        id: AxisId,
        error: EncoderError,
    },
    EncoderEstimates {
        id: AxisId,
        position: f32,
        velocity: f32,
    },
    Heartbeat {
        id: AxisId,
        error: AxisError,
        state: AxisState,
    },
    MotorCurrent {
        id: AxisId,
        setpoint: f32,
        measurement: f32,
    },
    MotorError {
        id: AxisId,
        error: MotorError,
    },
    VbusVoltage {
        id: AxisId,
        voltage: f32,
    },
    Unknown(CustomSignal),
}

Signals that may be received from an ODrive.

Variants

EncoderCount

Fields of EncoderCount

id: AxisIdshadow_count: i32cpr_count: i32
EncoderError

Fields of EncoderError

id: AxisIderror: EncoderError
EncoderEstimates

Fields of EncoderEstimates

id: AxisIdposition: f32velocity: f32
Heartbeat

Fields of Heartbeat

id: AxisIderror: AxisErrorstate: AxisState
MotorCurrent

Fields of MotorCurrent

id: AxisIdsetpoint: f32measurement: f32
MotorError

Fields of MotorError

id: AxisIderror: MotorError
VbusVoltage

Fields of VbusVoltage

id: AxisIdvoltage: f32
Unknown(CustomSignal)

Trait Implementations

impl Clone for Signal[src]

impl Copy for Signal[src]

impl Debug for Signal[src]

Auto Trait Implementations

impl RefUnwindSafe for Signal

impl Send for Signal

impl Sync for Signal

impl Unpin for Signal

impl UnwindSafe for Signal

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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