pub enum Law {
Dwell,
Linear,
Poly345,
Poly4567,
Cycloid,
Harmonic,
}Expand description
A motion law of VDI 2143, from rest to rest over u in [0, 1].
Variants§
Dwell
The slave stands: its rise must be 0.
Linear
Constant slope (a synchronous run): rise / master span throughout.
Poly345
The 5th-order polynomial 10 u^3 - 15 u^4 + 6 u^5: peak slope 1.875, peak acceleration 5.774, jerk 60 at the ends.
Poly4567
The 7th-order polynomial 35 u^4 - 84 u^5 + 70 u^6 - 20 u^7: no jerk at the ends; peak slope 2.1875, acceleration 7.513.
Cycloid
The cycloid (inclined sine) u - sin(2 pi u) / (2 pi): peak slope 2, acceleration 2 pi, no acceleration at the ends.
Harmonic
The simple sine (harmonic) (1 - cos(pi u)) / 2: peak slope pi / 2, but an acceleration of pi^2 / 2 at both ends, a jump against a neighbour at rest.
Implementations§
Trait Implementations§
impl Copy for Law
impl StructuralPartialEq for Law
Auto Trait Implementations§
impl Freeze for Law
impl RefUnwindSafe for Law
impl Send for Law
impl Sync for Law
impl Unpin for Law
impl UnsafeUnpin for Law
impl UnwindSafe for Law
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