pub struct MotorTrace {
pub setpoint: Vec<f64>,
pub angle: Vec<f64>,
pub speed: Vec<f64>,
pub torque: Vec<f64>,
}Expand description
One motor’s columns of a trace, all at the motor shaft: position setpoint, position, speed, torque.
Fields§
§setpoint: Vec<f64>§angle: Vec<f64>§speed: Vec<f64>§torque: Vec<f64>Implementations§
Source§impl MotorTrace
impl MotorTrace
pub fn following_error(&self) -> Vec<f64>
Trait Implementations§
Source§impl Clone for MotorTrace
impl Clone for MotorTrace
Source§fn clone(&self) -> MotorTrace
fn clone(&self) -> MotorTrace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MotorTrace
impl Debug for MotorTrace
Source§impl Default for MotorTrace
impl Default for MotorTrace
Source§fn default() -> MotorTrace
fn default() -> MotorTrace
Returns the “default value” for a type. Read more
Source§impl PartialEq for MotorTrace
impl PartialEq for MotorTrace
Source§fn eq(&self, other: &MotorTrace) -> bool
fn eq(&self, other: &MotorTrace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MotorTrace
Auto Trait Implementations§
impl Freeze for MotorTrace
impl RefUnwindSafe for MotorTrace
impl Send for MotorTrace
impl Sync for MotorTrace
impl Unpin for MotorTrace
impl UnsafeUnpin for MotorTrace
impl UnwindSafe for MotorTrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more