pub struct Motor {
pub target: StructuralTarget,
pub command: MotorCommand,
pub gear_ratio: f64,
pub max_torque_nm: Option<f64>,
pub max_velocity_radps: Option<f64>,
}Fields§
§target: StructuralTarget§command: MotorCommand§gear_ratio: f64§max_torque_nm: Option<f64>§max_velocity_radps: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motor
impl<'de> Deserialize<'de> for Motor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Motor
Auto Trait Implementations§
impl Freeze for Motor
impl RefUnwindSafe for Motor
impl Send for Motor
impl Sync for Motor
impl Unpin for Motor
impl UnsafeUnpin for Motor
impl UnwindSafe for Motor
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