Class: MultiDynamic

PSV.MultiDynamic

new PSV.MultiDynamic (dynamics, fn) package

Wrapper for multiple PSV.Dynamic evolving together

Name Type Description
dynamics Record.<string, PSV.Dynamic>
fn function

Callback function

Members

current Object.<string, number> readonly

Methods

goto (positions, speedMult)

Defines the target positions

Name Type Default Description
positions Record.<string, number>
speedMult number 1 optional

roll (rolls, speedMult)

Starts infinite movements

Name Type Default Description
rolls Record.<string, boolean>
speedMult number 1 optional

setSpeed (speed)

Changes base speed

Name Type Description
speed number

setValue (values)

Defines the current positions and immediately stops movements

Name Type Description
values Record.<string, number>

step (steps, speedMult)

Increase/decrease the target positions

Name Type Default Description
steps Record.<string, number>
speedMult number 1 optional

stop ()

Stops movements

update () package