[][src]Struct pololu_smc::variable_types::Limits

pub struct Limits {
    pub motor_not_allowed_to_run: bool,
    pub temperature_reducing_speed: bool,
    pub max_speed: bool,
    pub below_starting_speed: bool,
    pub speed_limited_acc_dec_brakeduration: bool,
    pub rc1_killswitch_active: bool,
    pub rc2_killswitch_active: bool,
    pub an1_killswitch_active: bool,
    pub an2_killswitch_active: bool,
    pub usb_killswitch_active: bool,
}

Flags that indicate things that are currently limiting the motor controller.

Fields

motor_not_allowed_to_run: bool

Motor is not allowed to run due to an error or safe-start violation.

temperature_reducing_speed: bool

Temperate is actively reducing target speed.

max_speed: bool

Max speed limit is actively reducing target speed (target speed > max speed).

below_starting_speed: bool

Starting speed limit is actively reducing target speed to zero (target speed < starting speed).

speed_limited_acc_dec_brakeduration: bool

Motor speed is not equal to target speed because of acceleration, deceleration, or brake duration limits.

rc1_killswitch_active: bool

RC1 is configured as a limit/kill switch and the switch is active (scaled value >= 1600).

rc2_killswitch_active: bool

RC2 is configured as a limit/kill switch and the switch is active (scaled value >= 1600).

an1_killswitch_active: bool

AN1 is configured as a limit/kill switch and the switch is active (scaled value >= 1600).

an2_killswitch_active: bool

AN2 is configured as a limit/kill switch and the switch is active (scaled value >= 1600).

usb_killswitch_active: bool

USB kill switch is active.

Trait Implementations

impl Clone for Limits[src]

impl Copy for Limits[src]

impl Debug for Limits[src]

impl Eq for Limits[src]

impl From<u16> for Limits[src]

impl Hash for Limits[src]

impl Ord for Limits[src]

impl PartialEq<Limits> for Limits[src]

impl PartialOrd<Limits> for Limits[src]

impl StructuralEq for Limits[src]

impl StructuralPartialEq for Limits[src]

Auto Trait Implementations

impl Send for Limits

impl Sync for Limits

impl Unpin for Limits

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, 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.