Class: MultiDynamic

PSV.utils.MultiDynamic

new PSV.utils.MultiDynamic (dynamics, fn)

Wrapper for multiple PSV.utils.Dynamic evolving together

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

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