pub struct GantrySync {
pub master: usize,
pub slave: usize,
pub ratio: f64,
pub cross_gain: Option<f64>,
}Expand description
How the two drives of a dual-drive gantry are kept in step, beyond each following the common setpoint.
Fields§
§master: usize§slave: usize§ratio: f64The slave motor’s angle per unit of the master’s (both drive the same axis).
cross_gain: Option<f64>None: master/slave, the slave’s position loop follows the master’s actual position (its setpoint less the
master’s following error). Some(k): cross-coupled, the synchronisation error (the slave’s actual position
less the master’s, in the slave’s units) is fed back to both speed commands with the gain k, 1/s: the slave’s
takes k e, the master’s gets k e / ratio.
Trait Implementations§
Source§impl Clone for GantrySync
impl Clone for GantrySync
Source§fn clone(&self) -> GantrySync
fn clone(&self) -> GantrySync
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 GantrySync
Source§impl Debug for GantrySync
impl Debug for GantrySync
Source§impl<'de> Deserialize<'de> for GantrySync
impl<'de> Deserialize<'de> for GantrySync
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 GantrySync
impl PartialEq for GantrySync
Source§fn eq(&self, other: &GantrySync) -> bool
fn eq(&self, other: &GantrySync) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GantrySync
impl Serialize for GantrySync
impl StructuralPartialEq for GantrySync
Auto Trait Implementations§
impl Freeze for GantrySync
impl RefUnwindSafe for GantrySync
impl Send for GantrySync
impl Sync for GantrySync
impl Unpin for GantrySync
impl UnsafeUnpin for GantrySync
impl UnwindSafe for GantrySync
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