Struct rust_rpi_4wd_car::Servos[][src]

pub struct Servos { /* fields omitted */ }

Allows simple control of the robot’s servos alone or in unison with each other.

Implementations

impl Servos[src]

pub fn new() -> Rr4cResult<Self>[src]

pub fn camera_pan_left(&mut self) -> Result[src]

pub fn camera_pan_right(&mut self) -> Result[src]

pub fn camera_tilt_down(&mut self) -> Result[src]

pub fn camera_tilt_up(&mut self) -> Result[src]

pub fn front_left(&mut self) -> Result[src]

pub fn front_right(&mut self) -> Result[src]

pub fn set_camera_pan<A: Into<Option<u8>>>(&mut self, angle: A) -> Result[src]

pub fn set_camera_tilt<A: Into<Option<u8>>>(&mut self, angle: A) -> Result[src]

pub fn set_front<A: Into<Option<u8>>>(&mut self, angle: A) -> Result[src]

pub fn servos_init(&mut self) -> Result[src]

pub fn servos_stop(&mut self) -> Result[src]

Trait Implementations

impl Debug for Servos[src]

impl PartialEq<Servos> for Servos[src]

impl StructuralPartialEq for Servos[src]

Auto Trait Implementations

impl !RefUnwindSafe for Servos

impl Send for Servos

impl Sync for Servos

impl Unpin for Servos

impl !UnwindSafe for Servos

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.