[−][src]Struct odrive_rs::ascii::ODrive
Represents a connection with an ODrive motor controller.
Methods
impl<T> ODrive<T> where
T: Read + Write, [src]
T: Read + Write,
pub fn new(serial: T) -> Self[src]
Constructs a new ODrive connection using the ReadWriteCloningDecorator.
This method of construction will have consequences in overhead.
It should only be used when it is not possible to clone the type T.
impl<T> ODrive<T> where
T: Read + Write, [src]
T: Read + Write,
pub fn set_position(
&mut self,
motor_number: u8,
position: f32,
velocity_feed_forward: Option<f32>,
current_feed_forward: Option<f32>
) -> Result<()>[src]
&mut self,
motor_number: u8,
position: f32,
velocity_feed_forward: Option<f32>,
current_feed_forward: Option<f32>
) -> Result<()>
pub fn set_velocity(
&mut self,
motor_number: u8,
position: f32,
current_feed_forward: Option<f32>
) -> Result<()>[src]
&mut self,
motor_number: u8,
position: f32,
current_feed_forward: Option<f32>
) -> Result<()>
pub fn set_current(&mut self, motor_number: u8, current: f32) -> Result<()>[src]
pub fn trapezoidal_move(
&mut self,
motor_number: u8,
position: f32
) -> Result<()>[src]
&mut self,
motor_number: u8,
position: f32
) -> Result<()>
pub fn get_velocity(&mut self, motor_number: u8) -> Result<f32>[src]
pub fn read_float(&mut self) -> Result<f32>[src]
pub fn read_int(&mut self) -> Result<i32>[src]
pub fn run_state(
&mut self,
axis: u8,
requested_state: AxisState,
wait: bool
) -> Result<bool>[src]
&mut self,
axis: u8,
requested_state: AxisState,
wait: bool
) -> Result<bool>
pub fn read_string(&mut self) -> Result<String>[src]
Trait Implementations
impl<T> Read for ODrive<T> where
T: Read + Write, [src]
T: Read + Write,
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>[src]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut]) -> Result<usize, Error>1.36.0[src]
unsafe fn initializer(&self) -> Initializer[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>1.0.0[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>1.0.0[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>1.6.0[src]
fn by_ref(&mut self) -> &mut Self1.0.0[src]
fn bytes(self) -> Bytes<Self>1.0.0[src]
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read, 1.0.0[src]
R: Read,
fn take(self, limit: u64) -> Take<Self>1.0.0[src]
impl<T> Write for ODrive<T> where
T: Write + Read, [src]
T: Write + Read,
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>[src]
fn flush(&mut self) -> Result<(), Error>[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize, Error>1.36.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>1.0.0[src]
fn by_ref(&mut self) -> &mut Self1.0.0[src]
Auto Trait Implementations
impl<T> Send for ODrive<T> where
T: Send,
T: Send,
impl<T> Sync for ODrive<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ODrive<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ODrive<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for ODrive<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,