pub struct Signal {
pub signal: String,
pub unit: Option<String>,
pub per_rev: Option<f64>,
pub reference: Option<f64>,
pub scale: f64,
pub offset: f64,
pub wrap: Option<f64>,
pub time_offset_s: f64,
}Expand description
How one signal of the file becomes a motor quantity in SI units:
(raw + offset) × unit factor × scale, with the time shifted by time_offset_s.
Fields§
§signal: String§unit: Option<String>Overrides the file’s unit; required where the file has none.
per_rev: Option<f64>Units of the signal per motor revolution: for increments the encoder resolution (counts per turn), for a length the lead (mm of travel per motor turn). Not needed for rad, deg, rev.
reference: Option<f64>N m at 100 % (unit %) or at 1000 ‰ (unit ‰, as CiA 402 drives give torque in per mille of rated).
scale: f64§offset: f64§wrap: Option<f64>The raw value wraps around at this span (a 32-bit encoder count: 4294967296); it is unwrapped.
time_offset_s: f64Added to the signal’s times: where a device’s clock or a bus delay puts it behind the others.
Trait Implementations§
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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