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