-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmems_v15-5.m5f
1 lines (1 loc) · 45.5 KB
/
mems_v15-5.m5f
1
{"components":[{"id":"_coretwoscreen","createTime":1679744659259,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#1a2e42","backgroundImage":"","size":0,"screenType":"default","type":"screen"},{"id":"____buttonA","createTime":1679744659259,"name":"ButtonA","buttonIndex":0,"x":55,"y":347,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1679744659259,"name":"ButtonB","buttonIndex":1,"x":200,"y":347,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1679744659259,"name":"ButtonC","buttonIndex":2,"x":346,"y":347,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"6!y5*I8B&VQ1L0bN","createTime":1681895000445,"name":"Start_exercise","x":31,"y":8,"width":280,"height":30,"r":50,"text":"Start","font":"FONT_MONT_14","color":"#000000","borderColor":"#01a2b1","backgroundColor":"#FFFFFF","type":"touch_button","layer":20},{"id":"KCyH6H@EA-ofyfiP","createTime":1681895613148,"isCoreTwo":true,"name":"y_line","x":75,"y":150,"x1":75,"y1":150,"x2":225,"y2":150,"width":50,"color":"#000","lineWidth":1,"screenType":"default","type":"line","layer":23},{"id":"=egBcy5bFZp61D3r","createTime":1681895702917,"isCoreTwo":true,"name":"z_line","x":150,"y":75,"x1":150,"y1":75,"x2":150,"y2":225,"width":50,"color":"#000","lineWidth":1,"screenType":"default","type":"line","layer":24},{"id":"w=&T9K40C09o5pvv","createTime":1681896048495,"isCoreTwo":true,"isPaper":false,"name":"zlabel","x":138,"y":51,"color":"#000","text":"Z-Acc.","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":26},{"id":"U9ECaU53UyJgy`qI","createTime":1681896048495,"isCoreTwo":true,"isPaper":false,"name":"ylabel","x":242,"y":146,"color":"#000","text":"Y-Acc.","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":27},{"id":"D!da+27vC8z$pHIo","createTime":1681911200609,"isCoreTwo":true,"isPaper":false,"name":"scorelabel","x":96,"y":113,"color":"#ffffff","text":"Score","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":29},{"id":"uYE4E6%IsGzRPMTU","createTime":1681911246071,"isCoreTwo":true,"isPaper":false,"name":"score","x":166,"y":113,"color":"#ffffff","text":"0","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":31},{"id":"Ukp^AB``n1#Ochlk","createTime":1681914045482,"isCoreTwo":true,"isPaper":false,"name":"loop","x":217,"y":210,"color":"#000","text":"loop","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":33},{"id":"x`-VJ9=-9aK&j&xs","createTime":1681914049118,"isCoreTwo":true,"isPaper":false,"name":"label1","x":275,"y":209,"color":"#000","text":"label1","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":35},{"id":"q7LE%n8qHZOOPVD_","createTime":1682012533856,"isCoreTwo":true,"isPaper":false,"name":"debugger","x":16,"y":190,"color":"#000","text":"label0","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":14,"width":null,"height":null,"radius":null},{"id":"k+$Mg_0fI!2t=IO#","createTime":1682012911374,"isCoreTwo":true,"isPaper":false,"name":"improv1","x":91,"y":137,"color":"#ffffff","text":"label0","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":16,"width":null,"height":null,"radius":null},{"id":"y&pn_KJupC%XAeVN","createTime":1682012911374,"isCoreTwo":true,"isPaper":false,"name":"improv2","x":91,"y":160,"color":"#ffffff","text":"label0","font":"FONT_MONT_14","rotation":0,"screenType":"default","type":"label","layer":17,"width":null,"height":null,"radius":null},{"id":"2-X26jZsyWj`RiAP","createTime":1682013388739,"name":"detail_pb","x":215,"y":96,"width":70,"height":30,"r":50,"text":"Details","font":"FONT_MONT_14","color":"#000000","borderColor":"#01a2b1","backgroundColor":"#FFFFFF","type":"touch_button","layer":20,"radius":null}],"type":"core2","versions":"Beta","units":[{"id":"Itgcu!a!#T!NCrR6","createTime":1682012331822,"typeList":["core","atom","atom-u","PICO","core2","tough","m5station"],"hidden":false,"type":"unit_imu","name":"unit_imu0","port":"Custom","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"IMU.png","url":"https://docs.m5stack.com/en/unit/imu"}],"hats":[],"stamps":[],"blockly":"<variables><variable id=\"pF.|WKamuk.ba${mX$%v\">score_percent</variable><variable id=\"}k[5b.QagBUt)j:V8`7M\">Start_exercise_bool</variable><variable id=\"xDXCSKiA`+tW=:F8QPx^\">start_button</variable><variable id=\"eXuz*%ZZnn[jGQebQ{e}\">cut_off_freq</variable><variable id=\"dpQ]WXQc/i8KlDxzbT[C\">tryresult</variable><variable id=\"4(?HvQg}PXJMZ!#TqpE0\">sampling</variable><variable id=\"C~(ULK/~B~F?8Na+RK7q\">activity</variable><variable id=\"v}/qD8K{x/Wz}~*_hYCm\">exercise_counter</variable><variable id=\"]6A?N?84T2yL$XnT7K!9\">txt1</variable><variable id=\"o*eBytk/:4QRaD|8@}R~\">previous_z_acc</variable><variable id=\"+f9H[KH.ww8D*]F54Z.t\">txt2</variable><variable id=\"y;ZZv5B]Ec)GwKZH^Gb_\">z_offset</variable><variable id=\":KW.!N1A|O7fdi21znKe\">score_val</variable><variable id=\"_8QEda8Wqk.julg8nJ1_\">wait_extratime</variable><variable id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</variable><variable id=\"gb_U6x=,Y=E@Q|Q-^,b9\">mqtt_message</variable><variable id=\"YnTu$jh(q;Atj$^V1Lq+\">score_bad_posture</variable><variable id=\"T4[!tBcXDB$6~oSe08Yj\">z_old</variable><variable id=\"%pS=+BM1wpgT/jT=DrFq\">y_old</variable><variable id=\"p0,d9jzDdi[)i}Z`T*2@\">z_correct</variable><variable id=\"N*(m305eP;YWy5Xprut{\">y_correct</variable><variable id=\"E%v[nP+i1L[3sULGwGdu\">y_max_allow</variable><variable id=\"zs^P+58(}{CDrEMND]nC\">z_max_allow</variable><variable id=\"$:^3Rdt:1oMg|aW*?kCm\">loop_begin</variable><variable id=\"r%zmg|z9HWAFoqKGA$t*\">y_unfiltered_local</variable><variable id=\"39T2ZVjb8_:`pYeL1+?#\">z_unfiltered_local</variable><variable id=\"pFD`8+ttW3_HiQ1I2]xN\">roll</variable><variable id=\"zUs5r@M(y-`!=1y])dlI\">y_unfiltered_global</variable><variable id=\"+c;cYKG9!a]!Ld+fNb9c\">z_unfiltered_global</variable><variable id=\"RaD04bed5?wu^0-AA$;4\">z_filtered</variable><variable id=\"0rifzoCOGl#j.HbXypu6\">y_filtered</variable><variable id=\"SS4DwJ2y0@^irUAdJ$Rk\">loop_end</variable><variable id=\"ZayXbr+wV;S`N9_WpmPu\">loop_duration</variable><variable id=\"C~a8wX{R/0WL+V+AIrMM\">pixel_multiplier</variable><variable id=\"UYDj=,LeWY-0?ML2x,BN\">y_lcd</variable><variable id=\"h=+3%^O58{[E,Q||a,?^\">z_lcd</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"110\" y=\"-250\"><next><block type=\"mqtt_set_client\" id=\"i.?]%m]l%)),S-?-wo);\"><value name=\"ID\"><shadow type=\"text\" id=\"lclj/61McS!i?kNj^Q8I\"><field name=\"TEXT\">M5Stack</field></shadow></value><value name=\"SERVER\"><shadow type=\"text\" id=\"|/7#0s1C*VDVe`nL+s6D\"><field name=\"TEXT\">192.168.178.60</field></shadow></value><value name=\"PORT\"><shadow type=\"math_number\" id=\"=?Nn%mw5kXR_jeD:qpF^\"><field name=\"NUM\">1883</field></shadow></value><value name=\"USER\"><shadow type=\"text\" id=\"2lHUp;cITo##u8,H.SZ@\"><field name=\"TEXT\"></field></shadow></value><value name=\"PASSWORD\"><shadow type=\"text_password\" id=\".5/m02%2?Qq^1d1NHm7}\"><field name=\"TEXT\"></field></shadow></value><value name=\"KEEPALIVE\"><shadow type=\"math_slider\" id=\"-nL5VBy[gX1QRuj|pQaD\"><field name=\"NUM\" max=\"65536\" step=\"1\">300</field></shadow></value><next><block type=\"mqtt_start\" id=\"baw@`7+j#zr76L#SJgO7\"><next><block type=\"variables_set\" id=\"^1bD2cNp%$HiA~n**?CD\"><field name=\"VAR\" id=\"eXuz*%ZZnn[jGQebQ{e}\">cut_off_freq</field><value name=\"VALUE\"><block type=\"math_number\" id=\"P}Y_ljFsPv3?Gf^gDc3h\"><field name=\"NUM\">0.3</field></block></value><next><block type=\"variables_set\" id=\"8[{_N@!7?GDG!%bHNE,4\"><field name=\"VAR\" id=\"4(?HvQg}PXJMZ!#TqpE0\">sampling</field><value name=\"VALUE\"><block type=\"math_number\" id=\",]YD(0z$?*+%6!Q7ts=/\"><field name=\"NUM\">0.1</field></block></value><next><block type=\"execute\" id=\"FYc^8KPC#ji|+KylPrM|\"><field name=\"CODE\">alpha = 1 / (1 + 2 * math.pi * sampling * cut_off_freq)</field><next><block type=\"variables_set\" id=\"49-maWJNuc9xyD)vc0LL\"><field name=\"VAR\" id=\"o*eBytk/:4QRaD|8@}R~\">previous_z_acc</field><value name=\"VALUE\"><block type=\"math_number\" id=\"FmGomJj1_]jqaF{D{=7v\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"X#Z+Lz5yy_m[$*Y1?M#{\"><field name=\"VAR\" id=\"y;ZZv5B]Ec)GwKZH^Gb_\">z_offset</field><value name=\"VALUE\"><block type=\"math_number\" id=\"1f;2?i^uFvCeE.1Ub8vX\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"rmg8/Ma`K}z^?a/`)S{n\"><field name=\"VAR\" id=\"_8QEda8Wqk.julg8nJ1_\">wait_extratime</field><value name=\"VALUE\"><block type=\"math_number\" id=\"0!yPQqYo}4Pv?Ef~RBkB\"><field name=\"NUM\">10</field></block></value><next><block type=\"variables_set\" id=\"Ct~+0Wuo]#Q/`g]jdL`*\"><field name=\"VAR\" id=\"gb_U6x=,Y=E@Q|Q-^,b9\">mqtt_message</field><value name=\"VALUE\"><block type=\"text\" id=\"fN3eU8M1m|t@dI[e;27u\"><field name=\"TEXT\">moin</field></block></value><next><block type=\"variables_set\" id=\"%1B.dn7!CgOkH0LNH|#0\"><field name=\"VAR\" id=\"T4[!tBcXDB$6~oSe08Yj\">z_old</field><value name=\"VALUE\"><block type=\"math_number\" id=\"=1]SMJ%S5c,XI2sjv(S[\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"ZXFor,mS:zt^wLz=B9[8\"><field name=\"VAR\" id=\"%pS=+BM1wpgT/jT=DrFq\">y_old</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Z6TR})?o2{zL4@f7hXPF\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"[aaU4,,mJTiUegAM8}LH\"><field name=\"VAR\" id=\"p0,d9jzDdi[)i}Z`T*2@\">z_correct</field><next><block type=\"variables_set\" id=\"i!VcUu@*E13wX8$J]:!Y\"><field name=\"VAR\" id=\"N*(m305eP;YWy5Xprut{\">y_correct</field><next><block type=\"execute\" id=\"EPl7)W]4*jufioAKui3|\"><field name=\"CODE\">score_gb = []</field><next><block type=\"execute\" id=\"GhmbJD-+-mUjkU{X}R6E\"><field name=\"CODE\">import math&#10;# Filter&#10;class Filter:&#10; def __init__(self,cut_off_freq,sampling):&#10; self.alpha = 1 / (1 + 2 * math.pi * sampling * cut_off_freq)&#10; self.output = 0&#10; def filter(self, input):&#10; self.filtered_val = self.alpha * self.output + (1 - self.alpha) * input&#10; self.output = self.filtered_val&#10; return self.output&#10;&#10;fz = Filter(cut_off_freq, sampling)&#10;fy = Filter(cut_off_freq, sampling)</field><next><block type=\"execute\" id=\"SqJPSRS4Cn+xI,Jdo(^$\"><field name=\"CODE\">def split_into_6_sorted_by_false(arr):&#10; n = len(arr)&#10; chunk_size = n / 6&#10; remainder = n % 6&#10; result = []&#10; start = 0&#10; for i in range(6):&#10; end = start + int(chunk_size)&#10; if i < remainder:&#10; end += 1&#10; chunk = arr[start:end]&#10; result.append(chunk)&#10; start = end&#10; sorted_indices = sorted(range(len(result)), key=lambda i: result[i].count(False), reverse=True)&#10; original_indices = [sorted_indices.index(i) for i in range(len(result))]&#10; return original_indices</field><next><block type=\"execute\" id=\"q%t03*x9v?f*n([_tZgL\"><field name=\"CODE\">def get_txt1_txt2(result):&#10; if result[0] <= 2:&#10; txt1 = \"During Lift up\"&#10; else:&#10; txt1 = \"During Lift down\"&#10;&#10; if result[0] in (0, 5):&#10; txt2 = \"Beginning of the exercise\"&#10; elif result[0] in (1, 4):&#10; txt2 = \"During the exercise\"&#10; else:&#10; txt2 = \"At the End of the exercise\"&#10;&#10; return txt1, txt2</field><next><block type=\"variables_set\" id=\"WBo#_kZR5je49Bu(RP:Z\"><field name=\"VAR\" id=\"}k[5b.QagBUt)j:V8`7M\">Start_exercise_bool</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\":sZP;4z7?PUpf3=JZ2i(\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"variables_set\" id=\"cD#O:ks;N=R+A;c3+Kw`\"><field name=\"VAR\" id=\"v}/qD8K{x/Wz}~*_hYCm\">exercise_counter</field><value name=\"VALUE\"><block type=\"math_number\" id=\"v~yR5gjEkd3B#EIa+%O+\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\";*Cp0[0Gq=VBgzm?;UGj\"><field name=\"VAR\" id=\"xDXCSKiA`+tW=:F8QPx^\">start_button</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"/1*8HFYD#(pv#K[-iiyq\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"button_set_hidden\" id=\"`FqORs(=-6MooZYM8riQ\"><field name=\"COMPONENT\">Start_exercise</field><field name=\"MODE\">False</field><next><block type=\"button_set_hidden\" id=\"lny$PIBiL!DG,fmvzYKF\"><field name=\"COMPONENT\">detail_pb</field><field name=\"MODE\">True</field><next><block type=\"line_set_mode\" id=\"UiGS;|uEFFMYizHq%k4p\"><field name=\"COMPONENT\">z_line</field><field name=\"MODE\">True</field><next><block type=\"line_set_mode\" id=\"WxH4.8?01%8b,Q)Tg0n3\"><field name=\"COMPONENT\">y_line</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"AY:FmIu;2#yI5Ca=[xV-\"><field name=\"COMPONENT\">zlabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"YfL7gP.o1cEP*/U.f|rV\"><field name=\"COMPONENT\">ylabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"UI{;8Y4ZL[DGXXPW`#=b\"><field name=\"COMPONENT\">score</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"A0hZ)@:54b$}^DYgbjl_\"><field name=\"COMPONENT\">scorelabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"gqjkt3tz9l!$/4}a@:c?\"><field name=\"COMPONENT\">improv1</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"Y8/(:r?`*gU4X`!MtVY7\"><field name=\"COMPONENT\">improv2</field><field name=\"MODE\">True</field><next><block type=\"variables_set\" id=\"Mxr1Z[16]./}R!i2qzCJ\"><field name=\"VAR\" id=\"E%v[nP+i1L[3sULGwGdu\">y_max_allow</field><value name=\"VALUE\"><block type=\"math_number\" id=\"mKE82C@ZxHDhe(eVV%|4\"><field name=\"NUM\">0.3</field></block></value><next><block type=\"variables_set\" id=\"GXds]54[)|q/?#shQ++T\"><field name=\"VAR\" id=\"zs^P+58(}{CDrEMND]nC\">z_max_allow</field><value name=\"VALUE\"><block type=\"math_number\" id=\"U8|8XGV#SUqIn!80F(c%\"><field name=\"NUM\">0.3</field></block></value><next><block type=\"variables_set\" id=\"4MRr./tOA%c*uO#83V[Q\"><field name=\"VAR\" id=\"YnTu$jh(q;Atj$^V1Lq+\">score_bad_posture</field><value name=\"VALUE\"><block type=\"math_number\" id=\"86sfesyT{FpN!KsEK[@C\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"]1j|x%Ng:SrohVjsoDBf\"><field name=\"VAR\" id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</field><value name=\"VALUE\"><block type=\"math_number\" id=\".?Z#Ciy4b)=P;}bXLHt~\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"SF5--83CA7MtYWy9SlbE\"><field name=\"VAR\" id=\"C~(ULK/~B~F?8Na+RK7q\">activity</field><value name=\"VALUE\"><block type=\"text\" id=\"J`}HE5Vftf+!j3tu)4a.\"><field name=\"TEXT\">false</field></block></value><next><block type=\"basic_on_loop\" id=\"c/hfC}F2x:?Q?iz9UlwI\"><statement name=\"LOOP\"><block type=\"variables_set\" id=\"B.e)z:Y_WGsX;7_r*14Z\"><field name=\"VAR\" id=\"p0,d9jzDdi[)i}Z`T*2@\">z_correct</field><value name=\"VALUE\"><block type=\"text\" id=\"8|.#59+iu/LBq]$J+I*P\"><field name=\"TEXT\">true</field></block></value><next><block type=\"variables_set\" id=\"kPWb7A;ls7)yq@Hb|2y%\"><field name=\"VAR\" id=\"N*(m305eP;YWy5Xprut{\">y_correct</field><value name=\"VALUE\"><block type=\"text\" id=\"PD=8uy;CPFyAqB7Mzk1#\"><field name=\"TEXT\">true</field></block></value><next><block type=\"variables_set\" id=\"t;rb_z=4?BUkI!@@{Yzy\"><field name=\"VAR\" id=\"$:^3Rdt:1oMg|aW*?kCm\">loop_begin</field><value name=\"VALUE\"><block type=\"timer_get_ms\" id=\":!ScpR(tyLW=aP8f2OY}\"></block></value><next><block type=\"variables_set\" id=\"8K^QW!c::eAJD4I18Wg]\"><field name=\"VAR\" id=\"r%zmg|z9HWAFoqKGA$t*\">y_unfiltered_local</field><value name=\"VALUE\"><block type=\"IMU_GET_ACC_Y\" id=\"=Oyg+rhkFMBS.AAu55^^\"></block></value><next><block type=\"variables_set\" id=\"]E$egn-=8v=^#zF%.5sW\"><field name=\"VAR\" id=\"39T2ZVjb8_:`pYeL1+?#\">z_unfiltered_local</field><value name=\"VALUE\"><block type=\"IMU_GET_ACC_Z\" id=\"g]QaT9w[9H5fc_8#A+1g\"></block></value><next><block type=\"variables_set\" id=\"m32%AT582!`xq=!g!.3s\"><field name=\"VAR\" id=\"pFD`8+ttW3_HiQ1I2]xN\">roll</field><value name=\"VALUE\"><block type=\"IMU_GET_X\" id=\"}im-]p#ktIV1[o;2G_hY\"></block></value><next><block type=\"variables_set\" id=\"OFPYnO4eTm|)Y5K4xp*]\"><field name=\"VAR\" id=\"zUs5r@M(y-`!=1y])dlI\">y_unfiltered_global</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"?nz*9._kYG$%?*JHX+#D\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"~J.BxI={#S`/Q%vSRfOd\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"!GaY}#v:?bA;Yv78|HXk\"><field name=\"VAR\" id=\"r%zmg|z9HWAFoqKGA$t*\">y_unfiltered_local</field></block></value><value name=\"B\"><block type=\"math_trig\" id=\"L?5`e^K_7dh.?RA~d6{M\"><field name=\"OP\">COS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"SR:{+`P=ufug6^N}_mCQ\"><field name=\"VAR\" id=\"pFD`8+ttW3_HiQ1I2]xN\">roll</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_arithmetic\" id=\"q7}PmhN][Hch?y-WH%Bm\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"9`rAdI3N[~j:`otF%%Zf\"><field name=\"VAR\" id=\"39T2ZVjb8_:`pYeL1+?#\">z_unfiltered_local</field></block></value><value name=\"B\"><block type=\"math_trig\" id=\"Vsm4Ut{)n;|9C67pp7}B\"><field name=\"OP\">SIN</field><value name=\"NUM\"><block type=\"variables_get\" id=\"KT@9C`m2e3x,ymbY5{q_\"><field name=\"VAR\" id=\"pFD`8+ttW3_HiQ1I2]xN\">roll</field></block></value></block></value></block></value></block></value><next><block type=\"variables_set\" id=\"8xp_Q71RYvkWS1Vtz,4u\"><field name=\"VAR\" id=\"+c;cYKG9!a]!Ld+fNb9c\">z_unfiltered_global</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"+F#5aUS2ZXll7HpVcQDs\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"73!x[II9nJrj}5eb?=/A\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"oJFun%@pmlN#5!,4~r.z\"><field name=\"VAR\" id=\"39T2ZVjb8_:`pYeL1+?#\">z_unfiltered_local</field></block></value><value name=\"B\"><block type=\"math_trig\" id=\"T3ucrm+ydb9t+]`:}vpj\"><field name=\"OP\">SIN</field><value name=\"NUM\"><block type=\"variables_get\" id=\"s65Wm/rB[~^5@y*N(ZG2\"><field name=\"VAR\" id=\"pFD`8+ttW3_HiQ1I2]xN\">roll</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_arithmetic\" id=\"y[20;wbo:T=@ObnZ0e[W\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"cbW}#SfkS?XmABrb=M0c\"><field name=\"VAR\" id=\"r%zmg|z9HWAFoqKGA$t*\">y_unfiltered_local</field></block></value><value name=\"B\"><block type=\"math_trig\" id=\"%liiHugUeFR*e3ihMxZE\"><field name=\"OP\">COS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"0%-#oK9+|C,L=P:[,(-H\"><field name=\"VAR\" id=\"pFD`8+ttW3_HiQ1I2]xN\">roll</field></block></value></block></value></block></value></block></value><next><block type=\"execute\" id=\"naSTkkX,76?{H@!D!n2Q\"><field name=\"CODE\">y_filtered = y_unfiltered_global - fy.filter(y_unfiltered_global)</field><next><block type=\"execute\" id=\"iD#SFx8%@3XLSZ;p.TTo\"><field name=\"CODE\">z_filtered = z_unfiltered_global - fz.filter(z_unfiltered_global)</field><next><block type=\"controls_if\" id=\"!cz#tr^WYJgp4`BB.;Fm\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"C.1q.,6=4|i`(l-rvV0v\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"math_single\" id=\"JC*7Cy:rww%f^[UQo7}W\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"Q{Nv#jWla^S1r*WbAopb\"><field name=\"VAR\" id=\"RaD04bed5?wu^0-AA$;4\">z_filtered</field></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"u3=62cpO~j#Fh)K~vvS@\"><field name=\"VAR\" id=\"zs^P+58(}{CDrEMND]nC\">z_max_allow</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"hycDV6=.5W1x|A.x~@E3\"><field name=\"VAR\" id=\"p0,d9jzDdi[)i}Z`T*2@\">z_correct</field><value name=\"VALUE\"><block type=\"text\" id=\"$8y@/gG{e%ayVU}:IYmp\"><field name=\"TEXT\">false</field></block></value></block></statement><next><block type=\"controls_if\" id=\"$aGWFkw%UtI-MbJjqia0\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"qI{G4fTuWkJE@_]f@duK\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"math_single\" id=\"?A-|A0KvaL#NMyHr*A{9\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"|@)eKLFxn=@D1@mui#oT\"><field name=\"VAR\" id=\"0rifzoCOGl#j.HbXypu6\">y_filtered</field></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"v%%LsYC3sgf(47D?RibJ\"><field name=\"VAR\" id=\"E%v[nP+i1L[3sULGwGdu\">y_max_allow</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"3oyDRTeu4^p`~^^QgR,i\"><field name=\"VAR\" id=\"N*(m305eP;YWy5Xprut{\">y_correct</field><value name=\"VALUE\"><block type=\"text\" id=\"AW0NK|CEBJy;#V4Y)OzJ\"><field name=\"TEXT\">false</field></block></value></block></statement><next><block type=\"controls_ifelse\" id=\"h^*V9;Hh6eO{%DgG|KHb\"><value name=\"IF0\"><block type=\"variables_get\" id=\"RfA3@ZOtkckiJlLlh4$@\"><field name=\"VAR\" id=\"}k[5b.QagBUt)j:V8`7M\">Start_exercise_bool</field></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"YYGrqxp}s$HEK?2M}w*+\"><field name=\"VAR\" id=\"C~(ULK/~B~F?8Na+RK7q\">activity</field><value name=\"VALUE\"><block type=\"text\" id=\"ljje*JbT09}r~k1!,^yM\"><field name=\"TEXT\">true</field></block></value><next><block type=\"line_set_mode\" id=\"Qr30lvQ%g*?W7~ZrR;PJ\"><field name=\"COMPONENT\">z_line</field><field name=\"MODE\">False</field><next><block type=\"line_set_mode\" id=\"./Tm{$[M+d48GZ9CQ{4s\"><field name=\"COMPONENT\">y_line</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"vpN,-=5]X]8A`pXzb@$m\"><field name=\"COMPONENT\">zlabel</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"qfSz=.E~.||fRr2vEdyu\"><field name=\"COMPONENT\">ylabel</field><field name=\"MODE\">False</field><next><block type=\"variables_set\" id=\"yyKFwfPPo%L[|^W~s5/(\"><field name=\"VAR\" id=\"C~a8wX{R/0WL+V+AIrMM\">pixel_multiplier</field><value name=\"VALUE\"><block type=\"math_round\" id=\"ye(m$NY:T;h2;bi_KE6y\"><field name=\"OP\">ROUNDDOWN</field><value name=\"NUM\"><block type=\"math_arithmetic\" id=\"f{oEo{r4y7n@]dT|i5!D\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><block type=\"math_number\" id=\"=-uU[]C}OfK0F.3:=DOG\"><field name=\"NUM\">25</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\";}5qJk)*VjA^V2LnllvD\"><field name=\"VAR\" id=\"E%v[nP+i1L[3sULGwGdu\">y_max_allow</field></block></value></block></value></block></value><next><block type=\"controls_ifelse\" id=\"Ez4I*[2E|hFg!;cf3%I$\"><comment pinned=\"false\" h=\"80\" w=\"160\">Color</comment><value name=\"IF0\"><block type=\"logic_operation\" id=\"Gj$VW+dC}XwshGiFi#~L\"><field name=\"OP\">OR</field><value name=\"A\"><block type=\"logic_compare\" id=\"5,+!hOKz5Ad5MZ?/L3hv\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"math_single\" id=\"_o;*97MY1hr5-.|onZ$c\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"tWV7;+!lq/jr709@tMs1\"><field name=\"VAR\" id=\"0rifzoCOGl#j.HbXypu6\">y_filtered</field></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"muHJ/=mMdn{L!8oHbEOF\"><field name=\"VAR\" id=\"E%v[nP+i1L[3sULGwGdu\">y_max_allow</field></block></value></block></value><value name=\"B\"><block type=\"logic_compare\" id=\"QnRnL=D1]2^7G`y0y-iC\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"math_single\" id=\"/$tt^=LVIbAK)w;i[^hu\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"]#3aeny+KEca,SKwSAbd\"><field name=\"VAR\" id=\"RaD04bed5?wu^0-AA$;4\">z_filtered</field></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"*rAe[?Ey#m11LGmE!rdq\"><field name=\"VAR\" id=\"zs^P+58(}{CDrEMND]nC\">z_max_allow</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"execute\" id=\"D0y_d83l-JB!diB0fy:y\"><field name=\"CODE\">score_gb.append(False)</field><next><block type=\"execute\" id=\"m?Ap|Z!R05_x-b@bgm;M\"><field name=\"CODE\">pixel_color = 0xff0000</field><next><block type=\"variables_set\" id=\"c?c$~k/BK4`TnrQe[h7T\"><field name=\"VAR\" id=\"YnTu$jh(q;Atj$^V1Lq+\">score_bad_posture</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"`$lKuzrCHk#HP9qUI}{G\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get\" id=\"8][.o,Kjh7en}BWR1{D~\"><field name=\"VAR\" id=\"YnTu$jh(q;Atj$^V1Lq+\">score_bad_posture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"BGq;I$#G6-=K|Sx9dvWQ\"><field name=\"NUM\">1</field></block></value></block></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"execute\" id=\"j@J5zSn8$Q_]b4B-FyE]\"><field name=\"CODE\">score_gb.append(True)</field><next><block type=\"execute\" id=\"rW=@u!PU8g1_~YOtthq(\"><field name=\"CODE\">pixel_color = 0x33ff33</field><next><block type=\"variables_set\" id=\"sviMcdluu?)kOxh.+|oV\"><field name=\"VAR\" id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"0,Ne2U,46NjjO4%feX_5\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get\" id=\"FyMGEPw3G8YJA=Jq^UQA\"><field name=\"VAR\" id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</field></block></value><value name=\"B\"><block type=\"math_number\" id=\".KpJ~k`q`T%S`/C5X|CA\"><field name=\"NUM\">1</field></block></value></block></value></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"O8BAH2;o]O`DP*pD5dFG\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"R]$Fz$DNL^L|z8c?X;K}\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"L$2i-[qQ,Nd{4cD$M`Pg\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"{-i;5S`}oTUG}Be?gLCY\"><field name=\"VAR\" id=\"0rifzoCOGl#j.HbXypu6\">y_filtered</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"VCd]`]ZzHjd5_YsUbsOM\"><field name=\"VAR\" id=\"C~a8wX{R/0WL+V+AIrMM\">pixel_multiplier</field></block></value></block></value><value name=\"B\"><block type=\"math_single\" id=\"Ghm;{SR$?xQ+X.kVH_S-\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"math_number\" id=\"o9H,!2EiWSa%ru?]j9wq\"><field name=\"NUM\">75</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\" id=\"6[q0;3h8Rub(QMPY).e3\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"math_number_property\" id=\"G0rZq|@pE=Hn*woj_D)1\"><mutation divisor_input=\"false\"></mutation><field name=\"PROPERTY\">POSITIVE</field><value name=\"NUMBER_TO_CHECK\"><block type=\"variables_get\" id=\"CA{)tS[j|3EjdpoR8@ml\"><field name=\"VAR\" id=\"0rifzoCOGl#j.HbXypu6\">y_filtered</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\";;C!:t22kX:ur?B(tT.5\"><field name=\"VAR\" id=\"UYDj=,LeWY-0?ML2x,BN\">y_lcd</field><value name=\"VALUE\"><block type=\"math_number\" id=\"7mNTI2kyCa8)R,jAEmsn\"><field name=\"NUM\">75</field></block></value></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"tM7`,5(o1O3biENiq.0w\"><field name=\"VAR\" id=\"UYDj=,LeWY-0?ML2x,BN\">y_lcd</field><value name=\"VALUE\"><block type=\"math_number\" id=\"[?X$#ureK51h9=K=TiT?\"><field name=\"NUM\">-75</field></block></value></block></statement></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"k3_ri?]r3r/Ip:+6`U5n\"><field name=\"VAR\" id=\"UYDj=,LeWY-0?ML2x,BN\">y_lcd</field><value name=\"VALUE\"><block type=\"math_round\" id=\"A*au0-?6=A}eJy=UtiA@\"><field name=\"OP\">ROUNDDOWN</field><value name=\"NUM\"><block type=\"math_arithmetic\" id=\"ZMyi/fOU(E-/[Jhm+dk9\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"@4T2ucH$%Dn^CZ,StH~4\"><field name=\"VAR\" id=\"0rifzoCOGl#j.HbXypu6\">y_filtered</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"{s-.(~BX@n(1O@@.7A%j\"><field name=\"VAR\" id=\"C~a8wX{R/0WL+V+AIrMM\">pixel_multiplier</field></block></value></block></value></block></value></block></statement><next><block type=\"controls_if\" id=\")%YWSSTg^%*q.@:8WRNc\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"l]=w=u5H`-Cask08qFoP\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"r3l*S#-A1,[hy!/_nk-h\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"3g,#;ZNB~F`_Y=r?4#i2\"><field name=\"VAR\" id=\"RaD04bed5?wu^0-AA$;4\">z_filtered</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"r~pWChd[^Y]MnB?#2ky@\"><field name=\"VAR\" id=\"C~a8wX{R/0WL+V+AIrMM\">pixel_multiplier</field></block></value></block></value><value name=\"B\"><block type=\"math_single\" id=\"J82bsHEG%nl66~(!xdyX\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"math_number\" id=\"UvLc=s},7uf4tU_6SJ[J\"><field name=\"NUM\">75</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\" id=\"uCK?M@Ncs)#UYg1K6ZeD\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"math_number_property\" id=\"evVD_Y(,do5?czFGg+v}\"><mutation divisor_input=\"false\"></mutation><field name=\"PROPERTY\">POSITIVE</field><value name=\"NUMBER_TO_CHECK\"><block type=\"variables_get\" id=\"i2bHp!Tb0s08+[LTGmN(\"><field name=\"VAR\" id=\"RaD04bed5?wu^0-AA$;4\">z_filtered</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"`@7m$AGrme?{oug3ucuu\"><field name=\"VAR\" id=\"h=+3%^O58{[E,Q||a,?^\">z_lcd</field><value name=\"VALUE\"><block type=\"math_number\" id=\"zB9E[Pa;i7VkCUA0.cr]\"><field name=\"NUM\">75</field></block></value></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\":KfVfo^nQ*:!kXQuD-_V\"><field name=\"VAR\" id=\"h=+3%^O58{[E,Q||a,?^\">z_lcd</field><value name=\"VALUE\"><block type=\"math_number\" id=\")_P9R0lTzq`VyJ}b21,Z\"><field name=\"NUM\">-75</field></block></value></block></statement></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"%H?%~s=G*?Qie7;/FCS~\"><field name=\"VAR\" id=\"h=+3%^O58{[E,Q||a,?^\">z_lcd</field><value name=\"VALUE\"><block type=\"math_round\" id=\"p[*p({RO8w*jPj5)[8{F\"><field name=\"OP\">ROUNDDOWN</field><value name=\"NUM\"><block type=\"math_arithmetic\" id=\";oT#@2Z]T=E?Ro@s^6*(\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"FfSGLUN|t((oJwj2C%6n\"><field name=\"VAR\" id=\"RaD04bed5?wu^0-AA$;4\">z_filtered</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"4RJEiaCmm:H:,W$OyV{;\"><field name=\"VAR\" id=\"C~a8wX{R/0WL+V+AIrMM\">pixel_multiplier</field></block></value></block></value></block></value></block></statement><next><block type=\"execute\" id=\"CklFz!Bh/@fZN8.%;CH=\"><field name=\"CODE\">lcd.pixel(150+y_lcd, 150+z_lcd, pixel_color)</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"controls_if\" id=\"ni3jDj?+JVUkhq|_r(YQ\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"/me#0Nk!UJK$SOu{I?e[\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"9buXG0E3LDn1/wf6mnqq\"><field name=\"VAR\" id=\"v}/qD8K{x/Wz}~*_hYCm\">exercise_counter</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"E*ne4R!2L7d:(.Lw{#3~\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"#~G(afR4fKx;9Uix_OgU\"><field name=\"COMPONENT\">zlabel</field><field name=\"MODE\">True</field><next><block type=\"line_set_mode\" id=\";D_y.X2Caw^D8B|*,~@X\"><field name=\"COMPONENT\">z_line</field><field name=\"MODE\">True</field><next><block type=\"line_set_mode\" id=\"Vtb1-tngg_#X2r?Z)/1R\"><field name=\"COMPONENT\">y_line</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"DuCIfZ{P;/rzh$Mn=EO?\"><field name=\"COMPONENT\">ylabel</field><field name=\"MODE\">True</field></block></next></block></next></block></next></block></statement></block></statement><next><block type=\"execute\" id=\"7%9Iyo3#(.Q3:0@GGJ$X\"><field name=\"CODE\">mqtt_message = '{{\"time\": {}, \"activity\": {}, \"z_acc\": {}, \"y_acc\": {}, \"z_correct\": {}, \"y_correct\": {}}}'.format(time.ticks_ms(), activity,z_filtered, y_filtered, z_correct, y_correct)</field><next><block type=\"mqtt_publish\" id=\"`v_Icuqpq/pjg6etDw[`\"><value name=\"FROM\"><shadow type=\"text\" id=\"h{mlP$/81r!I%zV8~blx\"><field name=\"TEXT\">topic</field></shadow></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"WzIh6uBqiir5bW}%8T99\"><field name=\"VAR\" id=\"gb_U6x=,Y=E@Q|Q-^,b9\">mqtt_message</field></block></value><value name=\"qos\"><shadow type=\"math_slider\" id=\"`Ud,-h6Ved;6EVof~O32\"><field name=\"NUM\" max=\"2\" step=\"1\">0</field></shadow></value><next><block type=\"variables_set\" id=\"v8%b]VHc;hO;eB-r~Hew\"><field name=\"VAR\" id=\"SS4DwJ2y0@^irUAdJ$Rk\">loop_end</field><value name=\"VALUE\"><block type=\"timer_get_ms\" id=\"6L~BRw(S}:l{rOv-6MAP\"></block></value><next><block type=\"variables_set\" id=\",9{Bg/f??PO^HuIS#=wI\"><field name=\"VAR\" id=\"ZayXbr+wV;S`N9_WpmPu\">loop_duration</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"M}}.!X5=f%]n%JRnRisv\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"variables_get\" id=\"NaV-hwb?y/Uq_NONWOj3\"><field name=\"VAR\" id=\"SS4DwJ2y0@^irUAdJ$Rk\">loop_end</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"RW!.Z%Ev0__|O~/L-xze\"><field name=\"VAR\" id=\"$:^3Rdt:1oMg|aW*?kCm\">loop_begin</field></block></value></block></value><next><block type=\"label_set_text\" id=\")r^@m2Ng.Ky~}BqSBO2)\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"n_z^.{y4hIi_6f:k8s8,\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"W1McdiiOokeG[]/*Cuqu\"><field name=\"VAR\" id=\"ZayXbr+wV;S`N9_WpmPu\">loop_duration</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"tdYqMKKk]U=iNP.U9jIO\" x=\"570\" y=\"30\"><field name=\"NAME\">Filter_func</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment></block><block type=\"button_set_cb\" id=\"SS-0%k*qk=,|:NhJfUi2\" x=\"1210\" y=\"790\"><field name=\"COMPONENT\">Start_exercise</field><field name=\"EVENT\">pressed</field><statement name=\"FUNC\"><block type=\"variables_set\" id=\"ISb+NSGU.@[ufX^O%ue8\"><field name=\"VAR\" id=\"}k[5b.QagBUt)j:V8`7M\">Start_exercise_bool</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"q/h*xuU^t`Xdlj=-(PiU\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"(GQrnrr%5@9[ucx;Px@w\"><field name=\"VAR\" id=\"}k[5b.QagBUt)j:V8`7M\">Start_exercise_bool</field></block></value></block></value><next><block type=\"variables_set\" id=\"U!%[WP(|/Qxgw$l1:MnF\"><field name=\"VAR\" id=\"xDXCSKiA`+tW=:F8QPx^\">start_button</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"Pvj86ZpNqxv?v=zThWjG\"><value name=\"BOOL\"><block type=\"variables_get\" id=\",|-H@?Q:,N/ftXHvAoA^\"><field name=\"VAR\" id=\"xDXCSKiA`+tW=:F8QPx^\">start_button</field></block></value></block></value><next><block type=\"controls_if\" id=\"5=n42=_,(XGGNbb,7qze\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_negate\" id=\"5QvRP1@L!x+%UkT1b@SZ\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"nrvoX=wFMe+IA1]}pO||\"><field name=\"VAR\" id=\"xDXCSKiA`+tW=:F8QPx^\">start_button</field></block></value></block></value><statement name=\"DO0\"><block type=\"button_set_text\" id=\"7m7uIppj.4S;TLAcH:zn\"><field name=\"COMPONENT\">Start_exercise</field><value name=\"text\"><shadow type=\"text\" id=\"yjsikI~|59/?t,yyP+ly\"><field name=\"TEXT\">Start</field></shadow></value><next><block type=\"variables_set\" id=\"9Eh6r0;8$w|Cs!mA2_uL\"><field name=\"VAR\" id=\"C~(ULK/~B~F?8Na+RK7q\">activity</field><value name=\"VALUE\"><block type=\"text\" id=\"V/nY~Zo`@{hF#lVc{Qd,\"><field name=\"TEXT\">false</field></block></value><next><block type=\"variables_set\" id=\"ZI3]d=n~CV?9u:fX:3BY\"><field name=\"VAR\" id=\"v}/qD8K{x/Wz}~*_hYCm\">exercise_counter</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"[W=Xwm{c]L(ia6OiF!8}\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get\" id=\"|a7|=7i)W9d-KNd]d$?{\"><field name=\"VAR\" id=\"v}/qD8K{x/Wz}~*_hYCm\">exercise_counter</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"n@8!]I5TF;+atK}nd*RR\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"variables_set\" id=\"McXaDL8bx,59cFy,cL:P\"><field name=\"VAR\" id=\"pF.|WKamuk.ba${mX$%v\">score_percent</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"_1Pb}2nu@E-;%~Zmk!rM\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"math_arithmetic\" id=\"_^)v=N88f}.CKN9{Ixix\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><block type=\"variables_get\" id=\"i0q[K5{Q1?.CIb0K{VfE\"><field name=\"VAR\" id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</field></block></value><value name=\"B\"><block type=\"math_arithmetic\" id=\"k/_KkYf5h(h|zJiTKwBu\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get\" id=\"c:9Ys7U!zXkNgR.x/Fcg\"><field name=\"VAR\" id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"PQ;gTxOna75A%=vAWG*.\"><field name=\"VAR\" id=\"YnTu$jh(q;Atj$^V1Lq+\">score_bad_posture</field></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"eS/-{ZwIt?CjW~(Y?{G0\"><field name=\"NUM\">100</field></block></value></block></value><next><block type=\"variables_set\" id=\"`qCbc_G?IFm1NM1w/r!l\"><field name=\"VAR\" id=\":KW.!N1A|O7fdi21znKe\">score_val</field><value name=\"VALUE\"><block type=\"text_add\" id=\"XSO_/A^hf*sH.iNeZzp?\"><value name=\"arg0\"><shadow type=\"text\" id=\".$%nswlX#Y6tgPQqnc9H\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"2O`m9e-vIO{_x[)6I9%X\"><field name=\"VAR\" id=\"pF.|WKamuk.ba${mX$%v\">score_percent</field></block></value><value name=\"arg1\"><block type=\"text\" id=\"eB+7|BVO2!hTdXBJ%]D^\"><field name=\"TEXT\">%</field></block></value></block></value><next><block type=\"label_set_text\" id=\"!8TSR5,=3vDt!cwqZBLL\"><field name=\"COMPONENT\">score</field><value name=\"TEXT\"><shadow type=\"text\" id=\"bdczoGP.Fpr6^{a8S;]A\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"|JsR-~_;e82CI?t.@tRT\"><field name=\"VAR\" id=\":KW.!N1A|O7fdi21znKe\">score_val</field></block></value><next><block type=\"label_set_mode\" id=\")bHlmSy#rYZGto;GB70G\"><field name=\"COMPONENT\">score</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"nQfHLu[4k1~*I}]8^5e_\"><field name=\"COMPONENT\">scorelabel</field><field name=\"MODE\">False</field><next><block type=\"controls_if\" id=\"Y=tDUI7M5Ew)%7IS]egM\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"5y4-/(eebwWw*p~z_Wkt\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"variables_get\" id=\"|7Ic[:D~oN]]ICB79USg\"><field name=\"VAR\" id=\"pF.|WKamuk.ba${mX$%v\">score_percent</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"8:dN7LfTpmtDsc$s-SMM\"><field name=\"NUM\">100</field></block></value></block></value><statement name=\"DO0\"><block type=\"button_set_hidden\" id=\"MQ:D?8_E^J/CVLj7Ql;2\"><field name=\"COMPONENT\">detail_pb</field><field name=\"MODE\">False</field></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"execute\" id=\"hUF6fKMS?+t{UB2bS=?C\"><field name=\"CODE\">score_gb = []</field><next><block type=\"execute\" id=\"w_J_Q*]+sRar%@ccz5Um\"><field name=\"CODE\">tryresult = []</field><next><block type=\"button_set_text\" id=\"OGbAq44ll:|zT@*x9Y~_\"><field name=\"COMPONENT\">Start_exercise</field><value name=\"text\"><shadow type=\"text\" id=\"e?y,0zEVX1C@CM{R8FO-\"><field name=\"TEXT\">Stop</field></shadow></value><next><block type=\"label_set_mode\" id=\"iV0u5rplGmoJx`//U2:q\"><field name=\"COMPONENT\">score</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"ib@AQF#Ant/nex-P#N/f\"><field name=\"COMPONENT\">scorelabel</field><field name=\"MODE\">True</field><next><block type=\"variables_set\" id=\",A75HhU]@ub1`dz]1~YZ\"><field name=\"VAR\" id=\"$K,op#,Xi+;A`(bt6z{+\">score_good_posture</field><value name=\"VALUE\"><block type=\"math_number\" id=\"SzNxO^(et%Hyw#jQ5Kd%\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"V/v)B}%`^iTiT-5682|f\"><field name=\"VAR\" id=\"YnTu$jh(q;Atj$^V1Lq+\">score_bad_posture</field><value name=\"VALUE\"><block type=\"math_number\" id=\"hz_*@3xxuZDL.eoqKk{n\"><field name=\"NUM\">0</field></block></value><next><block type=\"label_set_mode\" id=\"Yi@3EQTnn97BrsOW#za2\"><field name=\"COMPONENT\">improv1</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"qBfy(F6YcUUb_BHNdqeo\"><field name=\"COMPONENT\">improv2</field><field name=\"MODE\">True</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block><block type=\"variables_get\" id=\"B0h^(PCM@1MVIY(Z.j.!\" disabled=\"true\" x=\"1730\" y=\"1530\"><field name=\"VAR\" id=\"pF.|WKamuk.ba${mX$%v\">score_percent</field></block><block type=\"button_set_cb\" id=\";|($H:[]6g_G8j9)Qbl|\" x=\"1210\" y=\"1630\"><field name=\"COMPONENT\">detail_pb</field><field name=\"EVENT\">pressed</field><statement name=\"FUNC\"><block type=\"button_set_hidden\" id=\"tD$XjQdiy=vD)0rFB2`h\"><field name=\"COMPONENT\">detail_pb</field><field name=\"MODE\">True</field><next><block type=\"execute\" id=\"hcd8^@F_q5x,DNV-dUOl\"><field name=\"CODE\">tryresult = split_into_6_sorted_by_false(score_gb)</field><next><block type=\"label_set_text\" id=\"|2(F^hqCj[M$eADOH8FN\"><field name=\"COMPONENT\">debugger</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"=$dg-iTMNQf{+=,#,EEb\"><field name=\"VAR\" id=\"dpQ]WXQc/i8KlDxzbT[C\">tryresult</field></block></value><next><block type=\"execute\" id=\"LyuBa$XMiraGy2i{f,j%\"><field name=\"CODE\">txt1, txt2 = get_txt1_txt2(tryresult)</field><next><block type=\"label_set_text\" id=\"xb.[,7v`B~vE+?u6qFna\"><field name=\"COMPONENT\">improv1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"$NeOj.SwHuP`aNi0vWK?\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"4miiv(BKY|u`h~.V8ik@\"><field name=\"VAR\" id=\"]6A?N?84T2yL$XnT7K!9\">txt1</field></block></value><next><block type=\"label_set_text\" id=\"WsONldiwq$y~Qa?SMVeD\"><field name=\"COMPONENT\">improv2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"E{Nm6=C?Ap)8Y`OyE#f5\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"uH*]a}ez72o3(XDK_5bX\"><field name=\"VAR\" id=\"+f9H[KH.ww8D*]F54Z.t\">txt2</field></block></value><next><block type=\"label_set_mode\" id=\"?;QNyEe5y,Sg@jdw:@D{\"><field name=\"COMPONENT\">improv1</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"1btC.^B^.WM|XI-zM:g/\"><field name=\"COMPONENT\">improv2</field><field name=\"MODE\">False</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1682012331822,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"htcVvvngFcdf2ADNSLbvKkEblJaQBDrV","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["imu"],"cbIdList_":[],"eventCBIdList_":[],"apikey":"CD70604C","uuid":"6a7dfdb9-3f63-4320-957b-cf0a45bfba58"}