pub struct MotorNode {
pub id: String,
pub key: String,
pub radius: f64,
pub inertia: f64,
pub pulley: String,
pub at: Option<[f64; 3]>,
pub body: Option<usize>,
pub clockwise: bool,
pub transmission: Transmission,
pub axis: Option<usize>,
pub worm: Option<WormNode>,
}Fields§
§id: String§key: String§radius: f64The pulley it turns, through its gearbox: radius and inertia (1 and 0 where it turns none).
inertia: f64§pulley: String§at: Option<[f64; 3]>§body: Option<usize>The body its pulley rides on (machine.pulley.body), which at is from.
clockwise: boolThe belt runs round its pulley clockwise (machine.pulley.clockwise).
transmission: Transmission§axis: Option<usize>The axis its screw, rack, linear motor or rotary drives; None for a belt.
worm: Option<WormNode>Its gearbox is a worm stage.
Auto Trait Implementations§
impl Freeze for MotorNode
impl RefUnwindSafe for MotorNode
impl Send for MotorNode
impl Sync for MotorNode
impl Unpin for MotorNode
impl UnsafeUnpin for MotorNode
impl UnwindSafe for MotorNode
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