-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 38.2 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</variable><variable id="MWq/[+y!O2^=.NnBxHJ}">strip</variable><variable id="2ZdC@dP]P|6NFG,(2rGL">stripChangeDelay</variable><variable id="SFgj~?H{#5Ocw{Fi~s}L">tmp</variable><variable id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</variable><variable id="Hcpod+o#kQ@{P-5dbt;C">stripMode</variable><variable id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</variable><variable id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</variable><variable id="LmyF%yZy9HW%2:^Cv%e*">distance</variable><variable id="L.N3nS2v$Fg#;I5Ru{4[">stripColors</variable></variables><block type="pxt-on-start" id="c@hRvq)h]DqWP}`rMN?h" x="20" y="20"><statement name="HANDLER"><block type="variables_set" id="PLf`S{6[^|hM/ZAhN!lC"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="neopixel_create" id="ryGmK0?x1WoRJ7TaY!/#"><field name="pin">DigitalPin.P16</field><field name="mode">NeoPixelMode.RGB</field><value name="numleds"><shadow type="math_number" id="a~U?G{+e2)FS=D}+%STs"><field name="NUM">4</field></shadow></value></block></value><next><block type="neopixel_clear" id="5(|D^qVO~xAe]*`8WC#6"><value name="strip"><block type="variables_get" id=")Re;9QEKz~hA!fA=^,$Z"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value><next><block type="basic_show_icon" id="9NV~Y~Y[prg5t$^][Fv@"><field name="i">IconNames.Happy</field><next><block type="playMelody" id="j0*V{$HTHM.@J1~o??NE"><value name="melody"><shadow type="melody_editor" id="|@+),r8nh+1rCUOT:psQ"><field name="melody">"C D E F - - - - "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="6-h{^3T45CH:P[w?,bh}"><mutation min="40" max="500" label="Number" precision="0"/><field name="SLIDER">283</field></shadow></value><next><block type="wuKong_mecanumWheel" id="00X9M?*K@FDs3%[QS5X]"><field name="LeftFront">wuKong.ServoList.S2</field><field name="LeftRear">wuKong.ServoList.S3</field><field name="RightFront">wuKong.ServoList.S1</field><field name="RightRear">wuKong.ServoList.S0</field><next><block type="variables_set" id="Svc%`F%RvYTt@piqx)HE"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field><value name="VALUE"><shadow type="math_number" id="9`m6rovrR^Xb-Q-x=7|O"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="^J@$YW.898GP@}ZDMVdf"><field name="VAR" id="LmyF%yZy9HW%2:^Cv%e*">distance</field><value name="VALUE"><shadow type="math_number" id="9u:B3?tdd#=eSoYayL18"><field name="NUM">300</field></shadow></value><next><block type="variables_set" id="Pag@5S7^lK@x18Vh/9J1"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field><value name="VALUE"><shadow type="math_number" id="J[w`Jqev:y?!eckru!#U"><field name="NUM">50</field></shadow></value><next><block type="setLightMode" id="fG9.2@li1tbN`^`V(N*_"><field name="mode">wuKong.LightMode.BREATH</field><next><block type="variables_set" id="xqxlP+$CI/T}cCcwY|l0"><field name="VAR" id="L.N3nS2v$Fg#;I5Ru{4[">stripColors</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_create_with" id="/kbGIwoUuOSEl}5/o%wa"><mutation items="1" horizontalafter="3"/><value name="ADD0"><block type="lists_create_with" id="1I!Tyv)bb-nk_eEehCh{"><mutation items="3" horizontalafter="3"/><value name="ADD0"><shadow type="math_number" id="/Zn8Mla(M]Ue=MgXre3`"><field name="NUM">50</field></shadow></value><value name="ADD1"><shadow type="math_number" id="*PbzK+,dU~!*T40,-e/["><field name="NUM">0</field></shadow></value><value name="ADD2"><shadow type="math_number" id="_.dMDBpK12moVI+$=}8L"><field name="NUM">0</field></shadow></value></block></value></block></value><next><block type="variables_set" id="w?c(ELj+R,|b={fH)pYl"><field name="VAR" id="2ZdC@dP]P|6NFG,(2rGL">stripChangeDelay</field><value name="VALUE"><shadow type="math_number" id="*dO{+DaWFgNpR`x;FbK6"><field name="NUM">100</field></shadow></value></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="device_button_event" id="9Zl(AB(G4aB%V}H?nO5d" x="895" y="20"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_change" id="]hxh3BIa4)hS%{7-?8]%"><field name="VAR" id="Hcpod+o#kQ@{P-5dbt;C">stripMode</field><value name="VALUE"><shadow type="math_number" id="$6UdAp/e,4/Ia7Vzme}i"><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="n{M?1ifimhsv@-fo;+S4"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="wqd6AJ$H+fE5ZtD/NGAO"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="2*[email protected]"><field name="VAR" id="Hcpod+o#kQ@{P-5dbt;C">stripMode</field></block></value><value name="B"><shadow type="math_number" id="z*^CVL=r.H0g_/)urKEn"><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="yLyq13opk9j[`u+9Vxl:"><field name="VAR" id="Hcpod+o#kQ@{P-5dbt;C">stripMode</field><value name="VALUE"><shadow type="math_number" id="2ZYok16/3(Q::[Z1Za^4"><field name="NUM">0</field></shadow></value></block></statement><next><block type="function_call" id="n.Qcez26b,C[l$0a`3_4"><mutation name="initStripColors" functionid=".VW?Xn?sJa,pL/}#FO=="><arg name="mode" id="k0s210ce5ihmliy4e6wc5" type="number"/></mutation><value name="k0s210ce5ihmliy4e6wc5"><shadow type="math_number" id="(z!r7FZSAB1U-MO=1yX]"><field name="NUM">1</field></shadow><block type="variables_get" id="pwXQ|Ez7!I6~2Atax1(W"><field name="VAR" id="Hcpod+o#kQ@{P-5dbt;C">stripMode</field></block></value><next><block type="variables_set" id="JV[D2Z7cg.gG.,`w~v}^"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field><value name="VALUE"><shadow type="math_number" id="sj#+6hqA5OO3I]oD3+Ft"><field name="NUM">0</field></shadow></value><next><block type="neopixel_clear" id=",L0K@vEBq$E.GeG}V![F"><value name="strip"><block type="variables_get" id="oA`yA*NW_-d.gTHZ-s=0"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value><next><block type="neopixel_show" id="b~eAaPMphJe}UD{NE:K^"><value name="strip"><block type="variables_get" id="PC{_]BI31h:5Mz~KcY@N"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="LUxPS9Z@hqJT=B@!op-_" x="1374" y="20"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="basic_show_icon" id="^]23E+`iTM{;,$IEk5fR"><field name="i">IconNames.Ghost</field><next><block type="controls_repeat_ext" id="=%}KwMuToJ6f*D5ITAyl"><value name="TIMES"><shadow type="math_whole_number" id="L/xk8S8T_c23aVRn44Lv"><field name="NUM">40</field></shadow></value><statement name="DO"><block type="variables_set" id="gox0dR|2I=1!vOL3G`[y"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="BDg_5XM:Td}?JrLhHvyk"><value name="min"><shadow type="math_number" id="jL7[d]^qy`H`|l-dmN1f"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="3RI2)zMFHV51y6,ndakc"><field name="NUM">11</field></shadow></value></block></value><next><block type="function_call" id=";lgXp^y0IL2Wi?9EAQK3"><mutation name="randomMove" functionid="t2Z|iWtH15LwtwMmu@c9"/><next><block type="device_pause" id="G{oi[2$uFUoJ/d39.O?|"><value name="pause"><shadow type="timePicker" id="}LOn8;jLlk1kQcLL0:JA"><field name="ms">500</field></shadow></value></block></next></block></next></block></statement><next><block type="wuKong_mecanumStop" id="7K|2US|8K-D^LI~NUqpb"/></next></block></next></block></statement></block><block type="device_button_event" id="~mUeIQZ/Ex*qI$#.-IHR" x="2138" y="20"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="basic_show_icon" id="d!==5DkXz9kwX}{*vW+S"><field name="i">IconNames.LeftTriangle</field><next><block type="controls_if" id="q92PSg1{]_z|$6q*lVXg"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="qMLNn8Gt[2)#~kS.#^ZG"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="mqSNG]|J@4Sp=Gg~C8`]"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field></block></value><value name="B"><shadow type="math_number" id="%U-T7_)GrK4:+RW7PQ#("><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="LFESr4orqpit%7r?n}OD"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field><value name="VALUE"><shadow type="math_number" id=",%[Qj0B}Z!KmiwwhsY`="><field name="NUM">1</field></shadow></value><next><block type="wuKong_mecanumRun" id="Ppf*jlkxo/8iF7},OR~S"><field name="type">wuKong.RunList.Front</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="100"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="Lu~4U$5/C)}wr`^r$K[]"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field></block></value></block></next></block></statement><statement name="ELSE"><block type="variables_set" id="iaxv[y+|ofjfo%8W]!C8"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field><value name="VALUE"><shadow type="math_number" id="yGE{Iuq_^qtpJ76x+_wT"><field name="NUM">0</field></shadow></value><next><block type="wuKong_mecanumStop" id="+pWS6OmL}V!iVXh4:O]q"/></next></block></statement></block></next></block></statement></block><block type="device_forever" id="9Fc0X{@hs#+{^4Ol?(*e" x="2870" y="20"><statement name="HANDLER"><block type="controls_if" id="_u~e(ql[}|1)oCNLxbz;"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="[cuwW?$Wo6C.~):^F?Tc"><field name="VAR" id="Hcpod+o#kQ@{P-5dbt;C">stripMode</field></block></value><statement name="DO0"><block type="function_call" id="n2?btXR,q}4(6/I*pc+S"><mutation name="ledsColor" functionid="op)K``}+wa/J|{a?AG)6"><arg name="r" id="76hsype0z1za2tn53qyb" type="number"/><arg name="g" id="iwvvg2a1r1k3ez7zbnd3" type="number"/><arg name="b" id="71hqvygxihlaviysruct2" type="number"/></mutation><value name="76hsype0z1za2tn53qyb"><shadow type="math_number" id="ier:4^GsT}yH3-?1F7m@"><field name="NUM">1</field></shadow><block type="lists_index_get" id="Zu]%6[-DetQ=0bC:2fG("><value name="LIST"><block type="lists_index_get" id="e$$$[^G?#_6{c,}8S{qZ"><value name="LIST"><block type="variables_get" id="7zO14Ar_61Ejj1O#Y$Hk"><field name="VAR" id="L.N3nS2v$Fg#;I5Ru{4[">stripColors</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="bJqD9Oh?8{G(/_FN/P*m"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field></block></value></block></value><value name="INDEX"><shadow type="math_number" id="hz4Sx^=mJkVd:6%bTtdJ"><field name="NUM">0</field></shadow></value></block></value><value name="iwvvg2a1r1k3ez7zbnd3"><shadow type="math_number" id="Gv/sR7Q[2BaFKsz5_%7s"><field name="NUM">1</field></shadow><block type="lists_index_get" id="%SPp)lCtY%Nqoc`0DyLN"><value name="LIST"><block type="lists_index_get" id="b-/K?n|Klw:|R=x+I)*I"><value name="LIST"><block type="variables_get" id=":mon!f+LVV8!/zjog}j4"><field name="VAR" id="L.N3nS2v$Fg#;I5Ru{4[">stripColors</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="2q~9]sT):}#))!|S^kVq"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field></block></value></block></value><value name="INDEX"><shadow type="math_number" id=";b^bS=v9-,NR3;LJlFvK"><field name="NUM">1</field></shadow></value></block></value><value name="71hqvygxihlaviysruct2"><shadow type="math_number" id="~9`@Ur+)C;h;b98i7o%_"><field name="NUM">1</field></shadow><block type="lists_index_get" id="/T]^4zw_JtN}R%ey6r*i"><value name="LIST"><block type="lists_index_get" id="53IpkZXXuE/=klJg77zB"><value name="LIST"><block type="variables_get" id="Yk]:E6s.4VISYb?q^$pU"><field name="VAR" id="L.N3nS2v$Fg#;I5Ru{4[">stripColors</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="R/_9(/4h,O@8;o$w{e~W"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field></block></value></block></value><value name="INDEX"><shadow type="math_number" id="p~$N}-/N-gAd$tG`WUq_"><field name="NUM">2</field></shadow></value></block></value><next><block type="variables_change" id="%J|2XYz(ARD7?,],U^Z9"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field><value name="VALUE"><shadow type="math_number" id="`Bi).-Lv*Ouot@eqA/?w"><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="1%2iV`+{;)#x[1ty$SWl"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="}9Faz[3{dh{88SQ#TicR"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="N9HMb;6uU0M@GoNviZRH"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="%)i~r~.[6+qZ.jQa[#UA"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="40~BPXnh+s(UU,V|}wi:"><value name="VALUE"><block type="variables_get" id="?C(cAQk-~U(41[U@qFcT"><field name="VAR" id="L.N3nS2v$Fg#;I5Ru{4[">stripColors</field></block></value></block></value><value name="B"><shadow type="math_number" id="FH-u%_c5f@d1P-RWWR.^"><field name="NUM">1</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="fV,*S(ZtG%scHdUWzPc7"><field name="VAR" id="6Qb6)[p{7n0%$RkA?vpp">stripColorsIndex</field><value name="VALUE"><shadow type="math_number" id="D{$7w]sO{5}MBn3f2oP{"><field name="NUM">0</field></shadow></value></block></statement></block></next></block></next></block></statement><next><block type="device_pause" id="!?*i,.q]KM%m_xJW7V=h"><value name="pause"><shadow type="timePicker"/><block type="variables_get" id="g%%?-[SRQ!ApC{EifU8#"><field name="VAR" id="2ZdC@dP]P|6NFG,(2rGL">stripChangeDelay</field></block></value></block></next></block></statement></block><block type="device_forever" id="4(=#M{[8%$?t;F$+^X(V" x="20" y="863"><statement name="HANDLER"><block type="controls_if" id="rvLfa~)X?PZ)@+(IiB~y"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="DMYl4BJR8+RX%N:FCY^R"><field name="OP">AND</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=";WJxS[SbwZ_kR].6s=-R"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="ydha-3k7{M2(,YlX.Wbe"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field></block></value><value name="B"><shadow type="math_number" id="Bn(vs!#dW?d*y/PG7YV:"><field name="NUM">0</field></shadow></value></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="):GW3|L1o/v!C%6`J@#N"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="ES2[h,4RN0T1=%_=!)`p"><field name="VAR" id="LmyF%yZy9HW%2:^Cv%e*">distance</field></block></value><value name="B"><shadow type="math_number" id="3%AT6B^/luI8x0A#2,9S"><field name="NUM">25</field></shadow></value></block></value></block></value><statement name="DO0"><block type="wuKong_mecanumRun" id="G[_5j5*}5.qJ]m~KB8UV"><field name="type">wuKong.RunList.rear</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="100"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="6Rl~*.{+Ncx57N|z^n*{"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field></block></value><next><block type="device_pause" id="h5wnUJ2kY^{CAlAn96!0"><value name="pause"><shadow type="timePicker" id="EZ^cW;1OlbA%WjoH@:wC"><field name="ms">500</field></shadow></value><next><block type="controls_if" id="DGNEklm7u_W|ovBc{K@/"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_random" id=":uqqZtHp,~6X?6mF#J7{"/></value><statement name="DO0"><block type="wuKong_mecanumRun" id="9.CW{n[eeF5[If$PK6Q8"><field name="type">wuKong.RunList.right</field><value name="speed"><shadow type="math_number_minmax" id="`9Tk_`TC3.x08!h([h6]"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><statement name="ELSE"><block type="wuKong_mecanumRun" id="^PTzO87*5vJ$]Ks{Fv6*"><field name="type">wuKong.RunList.left</field><value name="speed"><shadow type="math_number_minmax" id="agB5ldw{Kc=4^{4Uox6m"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><next><block type="device_pause" id="p?4=J7S{[sq{X@`!_i-i"><value name="pause"><shadow type="timePicker" id="Mt*1u,E:yLYQbF(wO~/}"><field name="ms">300</field></shadow></value><next><block type="wuKong_mecanumRun" id="r6f4Z$L8aP:kBbbCsSF}"><field name="type">wuKong.RunList.Front</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="100"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="(35S6f!_lUOG+}29RzG]"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="every_interval" id="hYG5~I_OvrklO_-qYVA@" x="883" y="863"><value name="interval"><shadow type="longTimePicker" id="2aH)sf(8G;MJJq+b#]^t"><field name="ms">100</field></shadow></value><statement name="HANDLER"><block type="controls_if" id="Y?@/W!Ho9G4u,%dSWqws"><mutation elseif="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="HPjCrEhK$m@/s#{eRE^J"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_sound_level" id=",9N=wj|bNhRUb7Q%X7w3"/></value><value name="B"><shadow type="math_number" id="m]F,NK?RbpX9sGipSf9q"><field name="NUM">150</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="yJG#:M2!zh%s9JRZ4}ba"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field><value name="VALUE"><shadow type="math_number" id=":bZVTLGQnfO{ZzU(_B|O"><field name="NUM">0</field></shadow></value><next><block type="basic_show_icon" id="QiAt%|W;?.HDy1?H;?9D"><field name="i">IconNames.Rollerskate</field><next><block type="wuKong_mecanumStop" id="-P=]Sd;c=K1RJypG`$A("/></next></block></next></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="AzdNr5F%C4t$-`h!o0~;"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="%$fhTzdct3tYLW`X-=Mr"><field name="VAR" id="9NMj{Z_U2Ehcm0U-0:58">carAutonomnous</field></block></value><value name="B"><shadow type="math_number" id="D}%ULZZ0b`{s-FW%_#s%"><field name="NUM">0</field></shadow></value></block></value><statement name="DO1"><block type="function_call" id="m5t12w+t=Ngrh{N~Uc:@"><mutation name="updateCarSpeed" functionid="P[hM(1MA`WIg}i0y!yTQ"/><next><block type="variables_set" id="1;p^BA5H=69t81KW]{EY"><field name="VAR" id="LmyF%yZy9HW%2:^Cv%e*">distance</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="sonar_ping" id="w.DtMNYT|B!PqUn_IW]H"><field name="trig">DigitalPin.P0</field><field name="echo">DigitalPin.P0</field><field name="unit">PingUnit.Centimeters</field></block></value></block></next></block></statement></block></statement></block><block type="function_definition" id="Bby|S4U;5jZkU@sMOQ9f" collapsed="true" x="1498" y="863"><mutation name="initStripColors" functionid=".VW?Xn?sJa,pL/}#FO=="><arg name="mode" id="k0s210ce5ihmliy4e6wc5" type="number"/></mutation><field name="function_name">initStripColors</field><value name="k0s210ce5ihmliy4e6wc5"><shadow type="argument_reporter_number" id="XAHG/%~Ejy#;i/[0~Ex2"><field name="VALUE">mode</field></shadow></value><statement name="STACK"><block type="variables_set" id="h.q{$(N{WPb[~JUd.Rpf"><field name="VAR" id="2ZdC@dP]P|6NFG,(2rGL">stripChangeDelay</field><value name="VALUE"><shadow type="math_number" id="Hggj?2dZw5l*pT+(jMyP"><field name="NUM">100</field></shadow></value><next><block type="typescript_statement" id="Y*#$M=8##ch:aoe-NkH~" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="switch (mode) {" line1=" case 1: " line2=" stripColors = [[255, 0, 0], [0, 0, 0], [0, 0, 255], [0, 0, 0]]" line3=" break" line4=" case 2:" line5=" // rainbow" line6=" stripColors = []" line7=" for (let indexR = 0; indexR <= 255; indexR++) {" line8=" stripColors.push([indexR, 255 - indexR, 0])" line9=" //ledsColor(indexR, 255 - indexR, 0)" line10=" }" line11=" for (let indexG = 0; indexG <= 255; indexG++) {" line12=" stripColors.push([255 - indexG, 0, indexG])" line13=" }" line14=" for (let indexB = 0; indexB <= 255; indexB++) {" line15=" stripColors.push([0, indexB, 255 - indexB])" line16=" }" line17=" stripChangeDelay = 5" line18=" break" line19=" default:" line20=" // should not be shown" line21=" stripColors = [[50, 0, 0]]" line22=" break" line23=" }" numlines="24"></mutation></block></next></block></statement></block><block type="function_definition" id="%O1`HLro0gVc[fEz,K4E" x="2278" y="863"><mutation name="randomMove" functionid="t2Z|iWtH15LwtwMmu@c9"/><field name="function_name">randomMove</field><statement name="STACK"><block type="controls_if" id="`nhklL^#q0*(1wq9@n6,"><mutation elseif="10" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="=Szc0I#P+czY2oPZ{p9("><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="?Mi{J`|IofRLD+2@3dGU"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="WcST6RK_7`TIS]{vS,c7"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="wuKong_mecanumRun" id="DF.5V*w5P^q~f;2!+*a#"><field name="type">wuKong.RunList.Front</field><value name="speed"><shadow type="math_number_minmax" id="WY)4}4TRlWcsI:[m3Mu7"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="O^F4#I=}IKYRo`lT2O$D"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Qm=.@A`hd%2@wnVz-3YF"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="5)p/7;#VeV]AWKIIhru6"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="wuKong_mecanumRun" id="xm!V$K]7d|kJ8,th#ZV]"><field name="type">wuKong.RunList.rear</field><value name="speed"><shadow type="math_number_minmax" id="#Tce6s-Xrjl4aJ{-YwGh"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF2"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="utq:Zg~TMnxpI~(u?z(5"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="fjLj!/_lk^-`2)*y`k$Z"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="n{-J$.;I:^A}FK_T]_Pc"><field name="NUM">2</field></shadow></value></block></value><statement name="DO2"><block type="wuKong_mecanumRun" id=",.E-=$6l$h`+o}|]#Avf"><field name="type">wuKong.RunList.right</field><value name="speed"><shadow type="math_number_minmax" id="5Bwh.o1hiRY:0z_cM#Ll"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF3"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="A1Vh,9Usz/?Mzpfkmq@7"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="3%VA!zn]{a;;ddsAB{.|"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="RLhBIA3F7kCjX_qRo=dM"><field name="NUM">3</field></shadow></value></block></value><statement name="DO3"><block type="wuKong_mecanumRun" id="Hqf.sB)@@/[C0g#z+9bW"><field name="type">wuKong.RunList.left</field><value name="speed"><shadow type="math_number_minmax" id="~8P2,Ac$GX92n7$sQP6t"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF4"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=")Ey!l|RTMc-[d2qUiN61"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="OvZ8[obCwmWJ32GMnWD4"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="s}~}g1b1a`y1:g5/V*i{"><field name="NUM">4</field></shadow></value></block></value><statement name="DO4"><block type="wuKong_mecanumRun" id="$|])bA]B67hZX;GevSEd"><field name="type">wuKong.RunList.RightFront</field><value name="speed"><shadow type="math_number_minmax" id="l%uW3!-x/mH8P?CTBtIN"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF5"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="8ezw{h4^eiK1v|2=+8M9"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="fxrCX#:1-Vlx!hk1ry.q"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="FKWnW^~.mEb72`IwF]Dt"><field name="NUM">5</field></shadow></value></block></value><statement name="DO5"><block type="wuKong_mecanumRun" id="[email protected]?b"><field name="type">wuKong.RunList.LeftFront</field><value name="speed"><shadow type="math_number_minmax" id="{Mk.|[q;g]%v1[a^G,vg"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF6"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="gygXTCkDQvj6Q#L-L0cp"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="E4D?Dj=S2fnHjg(+uD,."><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="z?21:?gJbqV$Q*n~KJZ:"><field name="NUM">6</field></shadow></value></block></value><statement name="DO6"><block type="wuKong_mecanumRun" id="wM,~3HFl*+l_;KM?le|t"><field name="type">wuKong.RunList.LeftRear</field><value name="speed"><shadow type="math_number_minmax" id="~{lmi3cM=,^:CtqUfaQG"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF7"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="zVs-U7zl.YkZS8S1whw}"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="qwx5TvAzI,CoXSVUznkf"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="d$1R}H@uBJd{?n]1v=C6"><field name="NUM">7</field></shadow></value></block></value><statement name="DO7"><block type="wuKong_mecanumRun" id="th!N0Jq!(Kj#*(czP,ed"><field name="type">wuKong.RunList.RightRear</field><value name="speed"><shadow type="math_number_minmax" id="PL4?kelKm`c-Q|6dj{*i"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><value name="IF8"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="j.sU=XLW4sMR/?jk%9TR"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=",qxks(N:oXLTbM@[WH1?"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="LkYa!o[k%fzjQnJvIumf"><field name="NUM">8</field></shadow></value></block></value><statement name="DO8"><block type="wuKong_mecanumDrift" id="]MN=!zqfn6m.v*jDTxN;"><field name="Turn">wuKong.TurnList.Left</field></block></statement><value name="IF9"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="ej8.M0LcQA2}lK!_Cc)R"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="M.W#VZ1phE.kmpxo?r$b"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id=")MP$1W/s^Qw3%J,/3(x:"><field name="NUM">9</field></shadow></value></block></value><statement name="DO9"><block type="wuKong_mecanumDrift" id=")]A7i|0*}.0(U6A6@f,^"><field name="Turn">wuKong.TurnList.Right</field></block></statement><value name="IF10"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="?S5LkWQ|#(V!Q6V.UsL`"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="c4FKc#.ItTT~`cWwXvcY"><field name="VAR" id="5Gn-yTqk%$7;`g0G_Fi(">randomMoveId</field></block></value><value name="B"><shadow type="math_number" id="OjB@U%/!0{DtvslFE;9j"><field name="NUM">10</field></shadow></value></block></value><statement name="DO10"><block type="wuKong_mecanumSpin" id="8q{,4{8K|8/LFwHVlfp|"><field name="Turn">wuKong.TurnList.Left</field><value name="speed"><shadow type="math_number_minmax" id="C*`foQ`rGBJQ[TW5pUNL"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement><statement name="ELSE"><block type="wuKong_mecanumSpin" id="CaAPz6iX$-^z9:mm}0uL"><field name="Turn">wuKong.TurnList.Right</field><value name="speed"><shadow type="math_number_minmax" id="~|*^X%3BWP4/NdUq!esg"><mutation min="0" max="100" label="Number" precision="0"/><field name="SLIDER">100</field></shadow></value></block></statement></block></statement></block><block type="function_definition" id="~u|AdoG.XNBOJ|_=:Zt`" x="2946" y="863"><mutation name="ledsColor" functionid="op)K``}+wa/J|{a?AG)6"><arg name="r" id="76hsype0z1za2tn53qyb" type="number"/><arg name="g" id="iwvvg2a1r1k3ez7zbnd3" type="number"/><arg name="b" id="71hqvygxihlaviysruct2" type="number"/></mutation><field name="function_name">ledsColor</field><value name="76hsype0z1za2tn53qyb"><shadow type="argument_reporter_number" id="5`NINANXdNaoGQPDA`*X"><field name="VALUE">r</field></shadow></value><value name="iwvvg2a1r1k3ez7zbnd3"><shadow type="argument_reporter_number" id="Q7h%2H/`MgUTT#$FACT7"><field name="VALUE">g</field></shadow></value><value name="71hqvygxihlaviysruct2"><shadow type="argument_reporter_number" id="Xi.{d5net@,yNH-wzg@d"><field name="VALUE">b</field></shadow></value><statement name="STACK"><block type="neopixel_set_pixel_color" id="RJaZP3TGWvsJ.^vO(s*R"><value name="strip"><block type="variables_get" id="W,ELcN-V2#U8ne_PJ}5+"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value><value name="pixeloffset"><shadow type="math_number" id="*TiCc9E!2a9}m_}@Rq;a"><field name="NUM">0</field></shadow></value><value name="rgb"><shadow type="neopixel_colors"/><block type="neopixel_rgb" id="4mVmTw4K_Z)Ha^pG)n=;"><value name="red"><block type="argument_reporter_number" id="V0!-n.C?c],s^bn4dASi"><field name="VALUE">r</field></block></value><value name="green"><block type="argument_reporter_number" id="JE[aS[4pp5/}xISf?H%s"><field name="VALUE">g</field></block></value><value name="blue"><block type="argument_reporter_number" id="(biNm*vF@jdYm)3QzHqB"><field name="VALUE">b</field></block></value></block></value><next><block type="neopixel_set_pixel_color" id="o,;#r%t;3HoIvWI]fw_x"><value name="strip"><block type="variables_get" id="?pkG3%N(L]g)b2}QmSHj"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value><value name="pixeloffset"><shadow type="math_number" id="Yft818zlE]7,`XZFbr`*"><field name="NUM">1</field></shadow></value><value name="rgb"><shadow type="neopixel_colors"/><block type="neopixel_rgb" id="B4PRpH-da~jMBL;Bmrbd"><value name="red"><block type="argument_reporter_number" id="9~%{=YlU@I6#N|](wlyL"><field name="VALUE">r</field></block></value><value name="green"><block type="argument_reporter_number" id="!~,b)+(?=iZ**{Q[oe#K"><field name="VALUE">g</field></block></value><value name="blue"><block type="argument_reporter_number" id="XZz7hT7#p5}94LoZvMjl"><field name="VALUE">b</field></block></value></block></value><next><block type="neopixel_set_pixel_color" id="G:i~bVYzSfn{/N|~pb9,"><value name="strip"><block type="variables_get" id="HBdzumR.[z4d.7YA5GQH"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value><value name="pixeloffset"><shadow type="math_number" id="Az,*N,wSX+~3Q2$Eeo}f"><field name="NUM">2</field></shadow></value><value name="rgb"><shadow type="neopixel_colors"/><block type="neopixel_rgb" id="bAtmSm5N)V;R6r[7E`FL"><value name="red"><block type="argument_reporter_number" id=";}6/jirR0-AgZxgm(}q_"><field name="VALUE">r</field></block></value><value name="green"><block type="argument_reporter_number" id="fceL,Yd96=djP7L+a@gg"><field name="VALUE">g</field></block></value><value name="blue"><block type="argument_reporter_number" id=":AS.46B4^~OHXOVGXZ9X"><field name="VALUE">b</field></block></value></block></value><next><block type="neopixel_set_pixel_color" id="c=(2aQF#druz$Lf;,7XJ"><value name="strip"><block type="variables_get" id="3lUe-|9|LVbswD*,-_g`"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value><value name="pixeloffset"><shadow type="math_number" id="8Kv(R|j7*)@-`O]|iatC"><field name="NUM">3</field></shadow></value><value name="rgb"><shadow type="neopixel_colors"/><block type="neopixel_rgb" id=")C(rS~sC(4d8i6QXJ9$+"><value name="red"><block type="argument_reporter_number" id="-*-(WELe#S7#p}_Zg(##"><field name="VALUE">r</field></block></value><value name="green"><block type="argument_reporter_number" id="~85g?*5V}xr6Gb9JW[Mt"><field name="VALUE">g</field></block></value><value name="blue"><block type="argument_reporter_number" id="ZX[.nvqs`|Li;ym@Hg`v"><field name="VALUE">b</field></block></value></block></value><next><block type="neopixel_show" id="5}Ei+i7Bi+H=!,wB%9|W"><value name="strip"><block type="variables_get" id="xDk`#blaoab?m#uBft{I"><field name="VAR" id="MWq/[+y!O2^=.NnBxHJ}">strip</field></block></value></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="[YU,pn+5z}1P|7Jwwiks" x="3757" y="863"><mutation name="updateCarSpeed" functionid="P[hM(1MA`WIg}i0y!yTQ"/><field name="function_name">updateCarSpeed</field><statement name="STACK"><block type="variables_set" id="!@#42})@jicnE]uh+LbZ"><field name="VAR" id="SFgj~?H{#5Ocw{Fi~s}L">tmp</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_js_round" id="3E%JR_WzM}lc}x!02opT"><field name="OP">round</field><value name="ARG0"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="AzBZnYm#xx`*_y0x0j}t"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_analog_pin" id="gt8Y!B^]isluQsx%XYw@"><field name="name">AnalogPin.P1</field></block></value><value name="B"><shadow type="math_number" id="!O~Z*y$.j|w6,+mFqy`I"><field name="NUM">10.22</field></shadow></value></block></value></block></value><next><block type="controls_if" id="[:1*F}o@c35--pW-L9)%"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="XkKe,h)kAB5!^uURI/,d"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="]xSdgQiz9]cj+/05iQE{"><field name="VAR" id="SFgj~?H{#5Ocw{Fi~s}L">tmp</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=")0?|U]dr,O$_gD{!ooCU"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="(OqIu:L@=gu2jyz]jnEu"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="2gw.QwM@#P)ORZA7^/+a"><field name="VAR" id="SFgj~?H{#5Ocw{Fi~s}L">tmp</field></block></value><next><block type="wuKong_mecanumRun" id="rgtZCLA3-,q)?;JgSN?Z"><field name="type">wuKong.RunList.Front</field><value name="speed"><shadow type="math_number_minmax"><mutation min="0" max="100"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="[4/jS8.VGM=d^^n)%fSd"><field name="VAR" id="qg(1}Q2iHUjUHgSq;)!:">carSpeed</field></block></value></block></next></block></statement></block></next></block></statement></block></xml>