pub struct DeckMechanicalControl {
pub motor_mode: MotorMode,
pub motor_target_angular_velocity_rad_s: f64,
pub hand_contact: bool,
pub hand_target_angle_rad: Option<f64>,
pub hand_target_angular_velocity_rad_s: f64,
pub hand_normal_force_n: f64,
pub hand_contact_radius_m: f64,
pub stylus_torque_nm: f64,
}Fields§
§motor_mode: MotorMode§motor_target_angular_velocity_rad_s: f64§hand_contact: bool§hand_target_angle_rad: Option<f64>§hand_target_angular_velocity_rad_s: f64§hand_normal_force_n: f64§hand_contact_radius_m: f64§stylus_torque_nm: f64The pickup solver supplies signed torque on the record.
Implementations§
Source§impl DeckMechanicalControl
impl DeckMechanicalControl
pub fn from_normalized( config: PhysicalDeckConfig, input: NormalizedDeckControl, ) -> Self
pub fn validate_for_config( self, config: PhysicalDeckConfig, ) -> Result<Self, DeckMechanicalError>
Trait Implementations§
Source§impl Clone for DeckMechanicalControl
impl Clone for DeckMechanicalControl
Source§fn clone(&self) -> DeckMechanicalControl
fn clone(&self) -> DeckMechanicalControl
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 moreimpl Copy for DeckMechanicalControl
Source§impl Debug for DeckMechanicalControl
impl Debug for DeckMechanicalControl
Source§impl Default for DeckMechanicalControl
impl Default for DeckMechanicalControl
Source§impl<'de> Deserialize<'de> for DeckMechanicalControl
impl<'de> Deserialize<'de> for DeckMechanicalControl
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
Source§impl PartialEq for DeckMechanicalControl
impl PartialEq for DeckMechanicalControl
Source§impl Serialize for DeckMechanicalControl
impl Serialize for DeckMechanicalControl
impl StructuralPartialEq for DeckMechanicalControl
Auto Trait Implementations§
impl Freeze for DeckMechanicalControl
impl RefUnwindSafe for DeckMechanicalControl
impl Send for DeckMechanicalControl
impl Sync for DeckMechanicalControl
impl Unpin for DeckMechanicalControl
impl UnsafeUnpin for DeckMechanicalControl
impl UnwindSafe for DeckMechanicalControl
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