amr-ros-k4/workspace.json

297 lines
11 KiB
JSON

{
"blocks": {
"languageVersion": 0,
"blocks": [
{
"type": "main_program",
"id": "COLVqmFP{j*XNMc.9rz+",
"x": -50,
"y": -30,
"inputs": {
"BODY": {
"block": {
"type": "controls_repeat_ext",
"id": "l?jsj;kx|7.`vK%OX$hB",
"inputs": {
"TIMES": {
"shadow": {
"type": "math_number",
"id": "|BZr(3i5I3Fv=SLR#wy$",
"fields": {
"NUM": 1
}
}
},
"DO": {
"block": {
"type": "digitalOut",
"id": "Cz1MB5`}~cPRiZhh$/P9",
"fields": {
"GPIO": 17
},
"inputs": {
"digitalOut": {
"block": {
"type": "procedures_callreturn",
"id": "U|7!ynVp5Z.nwD_`4=Z,",
"extraState": {
"name": "foo",
"params": [
"logic"
]
},
"inputs": {
"ARG0": {
"block": {
"type": "logic_boolean",
"id": "HXRaHRaPE)[G3WGmOi-T",
"fields": {
"BOOL": "TRUE"
}
}
}
}
}
}
},
"next": {
"block": {
"type": "delay",
"id": "IXp?_lac7+V*GG!lW{]0",
"fields": {
"DURATION_MS": 1000
},
"next": {
"block": {
"type": "variables_set",
"id": ",tz/Zq,NX|Jd6V+|dDl{",
"fields": {
"VAR": {
"id": "C_:{ED@bJimgLzEmC6(`"
}
},
"inputs": {
"VALUE": {
"block": {
"type": "digitalIn",
"id": "DJpFh.6H~L9fX2V4SDJd",
"fields": {
"GPIO": 16
}
}
}
},
"next": {
"block": {
"type": "delay",
"id": "VQy`Sl3]ey49sP%+N6$R",
"fields": {
"DURATION_MS": 500
},
"next": {
"block": {
"type": "variables_set",
"id": "i|LkDgVjImZd2}owndlz",
"fields": {
"VAR": {
"id": "[g,f6Mp!O$eZPCFs0U[H"
}
},
"inputs": {
"VALUE": {
"block": {
"type": "math_number",
"id": "[C@fwlekugl(`pi1b;1(",
"fields": {
"NUM": 100
}
}
}
},
"next": {
"block": {
"type": "pwmWrite",
"id": "Ezn#r.|lvDj5{Q1-C:E$",
"fields": {
"ADDRESS": "64",
"CHANNEL": 0
},
"inputs": {
"PWM_VALUE": {
"block": {
"type": "variables_get",
"id": "OkA-}PRPzgi;[I)@vcG$",
"fields": {
"VAR": {
"id": "[g,f6Mp!O$eZPCFs0U[H"
}
}
}
}
},
"next": {
"block": {
"type": "variables_set",
"id": "m{+MhlXz-1tpl`mPPBh5",
"fields": {
"VAR": {
"id": "ju{xs[rjZumqS87$0nhu"
}
},
"inputs": {
"VALUE": {
"block": {
"type": "odometryRead",
"id": "v=Js89HC8D0UUA.-pN[q",
"fields": {
"SOURCE": "encoder"
}
}
}
},
"next": {
"block": {
"type": "variables_set",
"id": "]LcUOwlc-y=`.e?EVgTa",
"fields": {
"VAR": {
"id": "Ug!mIa*[PnsL?H#9Ar*G"
}
},
"inputs": {
"VALUE": {
"block": {
"type": "odometryGet",
"id": "VG2Q/8?zcyU}s4!W;V/M",
"fields": {
"FIELD": "x"
},
"inputs": {
"VAR": {
"block": {
"type": "variables_get",
"id": "^AW6|z21?ycRyzJ2y5u9",
"fields": {
"VAR": {
"id": "ju{xs[rjZumqS87$0nhu"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
{
"type": "procedures_defreturn",
"id": "4W(2:w1NGV^I;j6@^_I|",
"x": 330,
"y": -30,
"extraState": {
"params": [
{
"name": "logic",
"id": "-HsGyh[-?q^.O;|%cRw="
}
]
},
"icons": {
"comment": {
"text": "Describe this function...",
"pinned": false,
"height": 80,
"width": 160
}
},
"fields": {
"NAME": "foo"
},
"inputs": {
"STACK": {
"block": {
"type": "digitalOut",
"id": "@.#O-pmBQ/iD*yw?nVpw",
"fields": {
"GPIO": 17
},
"inputs": {
"digitalOut": {
"block": {
"type": "variables_get",
"id": "H%L0RpA8^Wt+Y~*sY0wH",
"fields": {
"VAR": {
"id": "-HsGyh[-?q^.O;|%cRw="
}
}
}
}
},
"next": {
"block": {
"type": "delay",
"id": "GGjd9rTd!=`+-xt[nH-l",
"fields": {
"DURATION_MS": 1000
}
}
}
}
},
"RETURN": {
"block": {
"type": "logic_boolean",
"id": "xwUu7IW=*1qG5ae#*LzZ",
"fields": {
"BOOL": "FALSE"
}
}
}
}
}
]
},
"variables": [
{
"name": "logic",
"id": "-HsGyh[-?q^.O;|%cRw="
},
{
"name": "pinIn",
"id": "C_:{ED@bJimgLzEmC6(`"
},
{
"name": "pwm1",
"id": "[g,f6Mp!O$eZPCFs0U[H"
},
{
"name": "odometry",
"id": "ju{xs[rjZumqS87$0nhu"
},
{
"name": "valX",
"id": "Ug!mIa*[PnsL?H#9Ar*G"
}
]
}