[−][src]Struct pololu_smc::variable_types::Limits
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]
pub fn clone(&self) -> Limits
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Limits
[src]
pub fn cmp(&self, other: &Limits) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Limits> for Limits
[src]
impl PartialOrd<Limits> for Limits
[src]
pub fn partial_cmp(&self, other: &Limits) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Limits) -> bool
[src]
pub fn le(&self, other: &Limits) -> bool
[src]
pub fn gt(&self, other: &Limits) -> bool
[src]
pub fn ge(&self, other: &Limits) -> bool
[src]
impl StructuralEq for Limits
[src]
impl StructuralPartialEq for Limits
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,