ayvajs
Version:
A lightweight, behavior-based JavaScript API for controlling Open Source Multi Axis Stroker Robots.
1,601 lines (1,599 loc) • 21.3 kB
JavaScript
/* eslint-disable object-curly-newline */
export default {
'down-forward': {
L0: {
from: 0,
to: 1,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.8,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: 0.8,
},
},
'down-backward': {
L0: {
from: 0,
to: 1,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: 0.8,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.8,
},
},
'back-thrust-down': {
L0: {
from: 0,
to: 0.7,
phase: 0,
ecc: 0.5,
},
L1: {
from: 1,
to: 0,
phase: 0,
ecc: 0.5,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.4,
to: 1,
phase: 0,
ecc: 0.5,
},
},
'back-thrust-down-swirl': {
L0: {
from: 0,
to: 0.7,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.9,
to: 0.1,
phase: 0,
ecc: 0.5,
},
L2: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.5,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.5,
},
R2: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.5,
},
},
'thrust-forward': {
L0: {
from: 0,
to: 0.5,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.2,
to: 1,
phase: 0,
ecc: 0.5,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.5,
},
},
'thrust-forward-swirl': {
L0: {
from: 0,
to: 0.5,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.2,
to: 1,
phase: 0,
ecc: 0.5,
},
L2: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0,
},
R2: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.5,
},
},
'lean-forward-thrust-down': {
L0: {
from: 0,
to: 0.7,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 1,
to: 0,
phase: 0,
ecc: 0.5,
},
},
'lean-forward-thrust-down-swirl': {
L0: {
from: 0,
to: 0.7,
phase: 0,
ecc: 0.5,
},
L1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
L2: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.5,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.5,
},
R2: {
from: 1,
to: 0,
phase: 0,
ecc: 0.5,
},
},
'diagonal-down-back': {
L0: {
from: 0,
to: 0.5,
phase: 0,
ecc: 0.2,
},
L1: {
from: 1,
to: 0.2,
phase: 0,
ecc: 0.2,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 1,
to: 0,
phase: 1,
ecc: 0.6,
},
},
'diagonal-down-forward': {
L0: {
from: 0,
to: 0.5,
phase: 0,
ecc: 0.2,
},
L1: {
from: 0,
to: 0.8,
phase: 0,
ecc: 0.2,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0,
to: 1,
phase: 1,
ecc: 0.6,
},
},
'orbit-tease': {
L0: {
from: 0.8,
to: 1,
phase: 0,
ecc: 0.3,
},
L1: {
from: 0.9,
to: 0.1,
phase: 0,
ecc: -0.3,
},
L2: {
from: 0.1,
to: 0.9,
phase: 1,
ecc: -0.3,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.1,
to: 0.9,
phase: 1,
ecc: -0.3,
},
R2: {
from: 0.1,
to: 0.9,
phase: 0,
ecc: -0.3,
},
},
'left-right-tease': {
L0: {
from: 0.9,
to: 0.9,
phase: 0,
ecc: 0,
},
L1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
L2: {
from: 0,
to: 1,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 1,
to: 0,
phase: 1,
ecc: 0,
},
R2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
},
'forward-back-tease': {
L0: {
from: 0.9,
to: 0.9,
phase: 0,
ecc: 0,
},
L1: {
from: 0,
to: 1,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0,
to: 1,
phase: 1,
ecc: 0,
},
},
'vortex-tease': {
L0: {
from: 0.8,
to: 1,
phase: 0,
ecc: 0.3,
},
L1: {
from: 0.6,
to: 0.4,
phase: 0,
ecc: 0,
},
L2: {
from: 0.4,
to: 0.6,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.9,
to: 0.1,
phase: 1,
ecc: 0,
},
R2: {
from: 0.9,
to: 0.1,
phase: 0,
ecc: 0,
},
},
'swirl-tease': {
L0: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0,
},
L1: {
from: 1,
to: 0.3,
phase: 0,
ecc: 0,
},
L2: {
from: 1,
to: 0,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.9,
to: 0.1,
phase: 1,
ecc: 0,
},
R2: {
from: 0.4,
to: 1,
phase: 0,
ecc: 0,
},
},
'forward-back-grind': {
L0: {
from: 0,
to: 0,
phase: 0,
ecc: 0,
},
L1: {
from: 0.3,
to: 0.7,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0,
to: 1,
phase: 0.5,
ecc: 0,
},
},
'orbit-grind': {
L0: {
from: 0,
to: 0.3,
phase: 0,
ecc: 0.3,
},
L1: {
from: 0,
to: 0.6,
phase: 0,
ecc: -0.3,
},
L2: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: -0.3,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.1,
to: 0.9,
phase: 1,
ecc: -0.3,
},
R2: {
from: 0.9,
to: 0.1,
phase: 0,
ecc: -0.3,
},
},
'short-low-roll-forward': {
L0: {
from: 0,
to: 0.5,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.5,
to: 0.5,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.4,
to: 0.6,
phase: 1,
ecc: 0,
},
},
'short-low-roll-backward': {
L0: {
from: 0,
to: 0.5,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.5,
to: 0.5,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.6,
to: 0.4,
phase: 1,
ecc: 0,
},
},
'short-mid-roll-forward': {
L0: {
from: 0.25,
to: 0.75,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.5,
to: 0.5,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.4,
to: 0.6,
phase: 1,
ecc: 0,
},
},
'short-mid-roll-backward': {
L0: {
from: 0.25,
to: 0.75,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.5,
to: 0.5,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.6,
to: 0.4,
phase: 1,
ecc: 0,
},
},
'short-high-roll-backward': {
L0: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.5,
to: 0.5,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.4,
to: 0.6,
phase: 1,
ecc: 0,
},
},
'short-high-roll-forward': {
L0: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.5,
to: 0.5,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.6,
to: 0.4,
phase: 1,
ecc: 0,
},
},
'long-stroke-1': {
L0: {
from: 0.1,
to: 0.9,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0.5,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0.2,
},
},
'long-stroke-2': {
L0: {
from: 0.1,
to: 0.9,
phase: 0,
ecc: 0.25,
},
L1: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: 0.5,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0.2,
},
},
'long-stroke-3': {
L0: {
from: 0,
to: 0.7,
phase: 0,
ecc: 0,
},
L1: {
from: 0,
to: 1,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 1,
to: 0.3,
phase: 0,
ecc: 0.5,
},
},
'long-stroke-4': {
L0: {
from: 0,
to: 0.7,
phase: 0,
ecc: 0,
},
L1: {
from: 0.6,
to: 0.4,
phase: 0,
ecc: 0,
},
L2: {
from: 0.6,
to: 0.4,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0,
},
R2: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.25,
},
},
'long-stroke-5': {
L0: {
from: 0,
to: 0.8,
phase: 0,
ecc: 0,
},
L1: {
from: 0.4,
to: 0.6,
phase: 0,
ecc: 0,
},
L2: {
from: 0.4,
to: 0.6,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
R2: {
from: 0.5,
to: 1,
phase: 0,
ecc: 0.25,
},
},
'grind-circular': {
L0: {
from: 0,
to: 0,
phase: 0,
ecc: 0,
},
L1: {
from: 0.7,
to: 0.3,
phase: 0,
ecc: 0,
},
L2: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
R2: {
from: 0.3,
to: 0.7,
phase: 0,
ecc: 0,
},
},
'grind-vortex': {
L0: {
from: 0,
to: 0,
phase: 0,
ecc: 0,
},
L1: {
from: 0.7,
to: 0.3,
phase: 0,
ecc: 0,
},
L2: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0,
},
R2: {
from: 0.3,
to: 0.7,
phase: 0,
ecc: 0,
},
},
'grind-forward-back': {
L0: {
from: 0,
to: 0.1,
phase: 0,
ecc: 0,
},
L1: {
from: 0,
to: 1,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.6,
to: 0.4,
phase: 0,
ecc: 0,
},
},
'grind-forward-back-phased': {
L0: {
from: 0,
to: 0.1,
phase: 0,
ecc: 0,
},
L1: {
from: 0,
to: 1,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
},
'grind-forward-back-tilt': {
L0: {
from: 0,
to: 0.2,
phase: 0,
ecc: 0,
},
L1: {
from: 0.2,
to: 0.8,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.7,
to: 0,
phase: 0,
ecc: 0,
},
},
'grind-forward-tilt': {
L0: {
from: 0,
to: 0.2,
phase: 0,
ecc: 0,
},
L1: {
from: 0.3,
to: 0.3,
phase: 0,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.1,
to: 0.7,
phase: 0,
ecc: 0,
},
},
'tease-orbit-right': {
L0: {
from: 0.9,
to: 0.9,
phase: 0,
ecc: 0,
},
L1: {
from: 0.7,
to: 0.3,
phase: 0,
ecc: 0,
},
L2: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.1,
to: 0.9,
phase: 1,
ecc: 0,
},
R2: {
from: 0.1,
to: 0.9,
phase: 0,
ecc: 0,
},
},
'tease-orbit-left': {
L0: {
from: 0.9,
to: 0.9,
phase: 0,
ecc: 0,
},
L1: {
from: 0.7,
to: 0.3,
phase: 0,
ecc: 0,
},
L2: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.9,
to: 0.1,
phase: 1,
ecc: 0,
},
R2: {
from: 0.1,
to: 0.9,
phase: 0,
ecc: 0,
},
},
'tease-left-right-rock': {
L0: {
from: 0.8,
to: 0.8,
phase: 0,
ecc: 0,
},
L1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
L2: {
from: 0.9,
to: 0.1,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 1,
to: 0,
phase: 0,
ecc: 0,
},
R2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
},
'tease-down-back': {
L0: {
from: 0.8,
to: 1,
phase: 0,
ecc: 0,
},
L1: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: 0,
},
L2: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R2: {
from: 0.9,
to: 0.3,
phase: 1,
ecc: 0,
},
},
'tease-back-swirl-right': {
L0: {
from: 0.7,
to: 0.9,
phase: 0,
ecc: 0,
},
L1: {
from: 0.8,
to: 0.2,
phase: 0,
ecc: 0,
},
L2: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.2,
to: 0.8,
phase: 1,
ecc: 0,
},
R2: {
from: 0.3,
to: 1,
phase: 0,
ecc: 0,
},
},
'tease-back-swirl-left': {
L0: {
from: 0.7,
to: 0.9,
phase: 0,
ecc: 0,
},
L1: {
from: 0.8,
to: 0.2,
phase: 0,
ecc: 0,
},
L2: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.8,
to: 0.2,
phase: 1,
ecc: 0,
},
R2: {
from: 0.3,
to: 1,
phase: 0,
ecc: 0,
},
},
'tease-up-down-circle-right': {
L0: {
from: 0.7,
to: 1,
phase: 0,
ecc: 0,
},
L1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
L2: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.3,
to: 0.7,
phase: 1,
ecc: 0,
},
R2: {
from: 0.8,
to: 0.8,
phase: 0,
ecc: 0,
},
},
'tease-up-down-circle-left': {
L0: {
from: 0.7,
to: 1,
phase: 0,
ecc: 0,
},
L1: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
L2: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0,
},
R0: {
from: 0.5,
to: 0.5,
phase: 0,
ecc: 0,
},
R1: {
from: 0.7,
to: 0.3,
phase: 1,
ecc: 0,
},
R2: {
from: 0.8,
to: 0.8,
phase: 0,
ecc: 0,
},
},
};