Function that executes a cam (y as a function of x) with sinusoidal y speed.
Syntax |
real mv_sine_cam (real xCurr, real xCycleLen, real yCycleLen) |
---|---|
xCurr |
Current value of x (current master space). Can take values between 0 and xCycleLen |
xCycleLen |
Length of the cycle in x (master space) |
yCycleLen |
Length of the cycle in y (slave space) |
Result |
Position of y calculated from xCurr |
Validity |
Rule |
Note |
|
Example of use:
|