farmbot_os/farmbot_celery_script/fixture/sequence_pair.json

92 lines
1.8 KiB
JSON

[
{
"id": 777,
"kind": "sequence",
"args": {
"version": 20180209,
"locals": {
"kind": "scope_declaration",
"args": {},
"body": [
{
"kind": "variable_declaration",
"args": {
"label": "parent",
"data_value": {
"kind": "point",
"args": {
"pointer_type": "Plant",
"pointer_id": 456
}
}
}
}
]
}
},
"body": [
{
"kind": "execute",
"args": {
"sequence_id": 123
},
"body": [
{
"kind": "variable_declaration",
"args": {
"label": "parent",
"data_value": {
"kind": "identifier",
"args": {
"label": "parent"
}
}
}
}
]
}
]
},
{
"id": 123,
"kind": "sequence",
"args": {
"version": 20180209,
"locals": {
"kind": "scope_declaration",
"args": {},
"body": [
{
"kind": "parameter_declaration",
"args": {
"label": "parent",
"data_type": "point"
}
}
]
}
},
"body": [
{
"kind": "move_absolute",
"args": {
"speed": 100,
"location": {
"kind": "identifier",
"args": {
"label": "parent"
}
},
"offset": {
"kind": "coordinate",
"args": {
"x": 0,
"y": 0,
"z": 0
}
}
}
}
]
}
]