+{"version":"V2.0","versionNumber":"V2.2.1","type":"fire","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__fire_screen","createTime":1739843623137,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"hjKc%ViHl9qe9gC=","createTime":1739843645399,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"Self-Balancing Robot ","textOffset":3,"font":"Widgets.FONTS.DejaVu24","isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","rgb","speaker"]},{"module":["module_bala2"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\"/NqprTXhI?(J6NhG-(Dd\">i</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"370\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"module_bala2_init\" id=\"E?b0{i6P{-eb7T!Fh-R-\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"kTB/,2,b9@bm7aA4`Sa~\"><mutation max=\"3\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"module_bala2_calibrate\" id=\"Rz))Lx,^lU6wQyUkQ@(9\"><field name=\"NAME\">module_bala2_0</field><next><block type=\"module_bala2_start\" id=\"qP8L.{Hgl5~}=lZ7PS`W\"><field name=\"NAME\">module_bala2_0</field><next><block type=\"time_sleep_millisecond\" id=\"h2Qlg|^[k(Dk;#qF/mm7\"><value name=\"MS\"><shadow type=\"math_number\" id=\"^,e?SYR)2L2]sa3YZpLy\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">2000</field></shadow></value><next><block type=\"module_bala2_set_turn_speed\" id=\"Oj/pG1YqM5~4X0e(y;1p\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"br@(kCpUl$%IfN?d`Wk@\"><mutation max=\"1023\" min=\"-1023\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">-100</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"q.hT-*!,b{2}xowwt!,-\"><value name=\"MS\"><shadow type=\"math_number\" id=\"s|)k60X~N8a+WT3A;![v\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value><next><block type=\"module_bala2_set_turn_speed\" id=\"mo@c:S(VC0#FO+Vd8?l!\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\",Ucl:EMGEZ$4ho.Bnt8$\"><mutation max=\"1023\" min=\"-1023\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">100</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"[SRYwoNfb,zMS}z)d/7J\"><value name=\"MS\"><shadow type=\"math_number\" id=\"qm!=A49$Sdx{Njs%HC0@\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value><next><block type=\"module_bala2_set_turn_speed\" id=\"A.YiZW-50~NVqXpq7tQz\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"1k~.oMsEVQar;k2ZsL8*\"><mutation max=\"1023\" min=\"-1023\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"6-0Al|)Ym@2n~0^UP%P2\"><value name=\"MS\"><shadow type=\"math_number\" id=\"TH]{E01gx31W28H$72eb\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">2000</field></shadow></value><next><block type=\"controls_for_range\" id=\"BJuHsqn(me2JN/KX$bGi\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\"CsgLPpL/+f~0D9L+}s$f\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></block></value><statement name=\"DO\"><block type=\"module_bala2_set_angle_pid_target\" id=\"xlx~)e+.dFbCChN1zB)m\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lMEr[j6#Yb{6E*OzUJvF\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"math_arithmetic\" id=\"1%=K/%9ubC$EU1M]LLn)\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"wFwk)-T/|dy.WdO}{kdY\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_number\" id=\"z:{0sa}+Dd}w;//-|0sx\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"8:)HwYzRi1ei88qr29~i\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field></block></value></block></value><next><block type=\"time_sleep_millisecond\" id=\"o~hQ?;O/m]J6_i1bLH^X\"><value name=\"MS\"><shadow type=\"math_number\" id=\"%C*OUZqGwQlK{ke@^@Hf\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value></block></next></block></statement><next><block type=\"time_sleep_millisecond\" id=\"Cx#_bA}``xco80/==Kk$\"><value name=\"MS\"><shadow type=\"math_number\" id=\"fpPd:*A:rk*oNmH_uX6,\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">2000</field></shadow></value><next><block type=\"controls_for_range\" id=\"nI.z7rCe~$Xs@aeaK@ng\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\"gng|}yNj_YhnJNH1@17k\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></block></value><statement name=\"DO\"><block type=\"module_bala2_set_angle_pid_target\" id=\"Xyh~Srl`7yX{XNSm%MkK\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lMEr[j6#Yb{6E*OzUJvF\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"math_arithmetic\" id=\"})9(+,~Ut7Cp/o{;F#mf\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"scoe?La{=y|Ni:fwV^uG\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"AJ56|v{(U6`Pd1YEk6|d\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"z:{0sa}+Dd}w;//-|0sx\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></shadow></value></block></value><next><block type=\"time_sleep_millisecond\" id=\"X,MP67ryD5cTQ6GF)S`*\"><value name=\"MS\"><shadow type=\"math_number\" id=\"t;f^F%U%!P{L~xcMO?RI\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value></block></next></block></statement><next><block type=\"controls_for_range\" id=\"?qI++%3aw2sX_v8n7?Vf\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\"9Yl~?gitO`H-6wB-{BbV\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></block></value><statement name=\"DO\"><block type=\"module_bala2_set_angle_pid_target\" id=\"5^NM^vB=|9DW)~yfjX#y\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lMEr[j6#Yb{6E*OzUJvF\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"YR]L~e)g2$$j+RM_BS50\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field></block></value><next><block type=\"time_sleep_millisecond\" id=\"te=?tVv`Se[{jC|f:.TF\"><value name=\"MS\"><shadow type=\"math_number\" id=\"zeafBV5[eAa.xXZAGz5E\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value></block></next></block></statement><next><block type=\"time_sleep_millisecond\" id=\"D+Zr1k5nVH:r_t5eIRi8\"><value name=\"MS\"><shadow type=\"math_number\" id=\"*[v{KVsE;`yE!,t{v%tY\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">2000</field></shadow></value><next><block type=\"controls_for_range\" id=\"AUbom,oCDa9hClMIQs3}\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\"[dGM),?8n!ay/hs[,uh[\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></block></value><statement name=\"DO\"><block type=\"module_bala2_set_angle_pid_target\" id=\"f3AcJ%W;XVO@9C_u?Pqu\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lMEr[j6#Yb{6E*OzUJvF\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"math_arithmetic\" id=\"mBmJL%DKV=FJ|J?,RYXV\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\")(oUlos$^`/ap067KX+*\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></shadow></value><value name=\"B\"><shadow type=\"math_number\" id=\"I?72cxGcD]MRcy8xN{Xl\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\";St61$psbFcZWM$`$|SX\"><field name=\"VAR\" id=\"/NqprTXhI?(J6NhG-(Dd\">i</field></block></value></block></value><next><block type=\"time_sleep_millisecond\" id=\".QI.R{_V2rj6yt-CstU2\"><value name=\"MS\"><shadow type=\"math_number\" id=\"x(D${KOBV:n1LW($fn:M\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value></block></next></block></statement><next><block type=\"module_bala2_set_angle_pid_target\" id=\"%QHnzvY!y4X|*lsqz6#T\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lMEr[j6#Yb{6E*OzUJvF\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></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><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"890\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":240,"scale":0.78,"screenName":"","blockId":"","screenColorType":0,"id":"builtin","createTime":1739843623136}],"logicWhenNum":0,"customList":[]}
0 commit comments