This repository has been archived by the owner on Sep 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
toggleDemo.blk
1 lines (1 loc) · 7.67 KB
/
toggleDemo.blk
1
<xml xmlns="http://www.w3.org/1999/xhtml"><variables><variable type="" id="T7%#zJxQ(*Fa;es,c%xI">runtime</variable><variable type="" id="Nr,K#aK@b$FA-T_(|[U4">{elapsedTimeVariable}</variable><variable type="" id="_H72cg6T_XBH2Qg,zk72">atoggle1</variable><variable type="" id="?p5@I0-O]W7?zhLVYPgB">atime1</variable></variables><block type="procedures_defnoreturn" id="a-ag(k[H[rjCGwIqs6w3" deletable="false" editable="false" x="50" y="50"><field name="NAME">runOpMode</field><comment pinned="false" h="32" w="532">This function is executed when this Op Mode is selected from the Driver Station.</comment><statement name="STACK"><block type="comment" id="j}o(u~aolLHb@%j4ec(F"><field name="COMMENT">Put initialization blocks here.</field><next><block type="variables_set" id="|0*0diUIOAn~qZE;=e^6"><field name="VAR" id="T7%#zJxQ(*Fa;es,c%xI" variabletype="">runtime</field><value name="VALUE"><block type="elapsedTime2_create" id="GjDx~FRl5-2%vRF$;8%H"></block></value><next><block type="linearOpMode_waitForStart" id="Ok(E:$=rq0W?X^SEJbQG"><next><block type="elapsedTime2_reset" id="V*A.M2Ep=QUBViV,U1jV"><value name="ELAPSED_TIME"><block type="variables_get" id="872bIN.Tb[YqPh~^=$aq"><field name="VAR" id="T7%#zJxQ(*Fa;es,c%xI" variabletype="">runtime</field></block></value><next><block type="variables_set" id="-683a4ryLV/=MdXS,%1}"><field name="VAR" id="?p5@I0-O]W7?zhLVYPgB" variabletype="">atime1</field><value name="VALUE"><block type="elapsedTime2_getProperty_Number" id="ZkR9PUf/%7CR^dbo?F(["><field name="PROP">Milliseconds</field><value name="ELAPSED_TIME"><block type="variables_get" id="e!Bak6lg(-;Jd`*:YP^B"><field name="VAR" id="T7%#zJxQ(*Fa;es,c%xI" variabletype="">runtime</field></block></value></block></value><next><block type="variables_set" id="{w;m*Tv;uF%E@cN_Z{mD"><field name="VAR" id="_H72cg6T_XBH2Qg,zk72" variabletype="">atoggle1</field><value name="VALUE"><block type="logic_boolean" id="b7`E2S_(1;1NL.cK~V*0"><field name="BOOL">FALSE</field></block></value><next><block type="comment" id="2pk5dbi@Bo3:!~8I0t,T"><field name="COMMENT">Put run blocks here.</field><next><block type="controls_whileUntil" id="?}w=T+].IRsJFS8kdnG/"><field name="MODE">WHILE</field><value name="BOOL"><block type="linearOpMode_opModeIsActive" id="w$~:8E4MQ{%0`%ua6=:)"></block></value><statement name="DO"><block type="comment" id="[ajK~)?6h(3/cC)jz__c"><field name="COMMENT">Put loop blocks here.</field><next><block type="controls_if" id="[rumF]XqOESFK2u~d8ep"><value name="IF0"><block type="logic_operation" id="uGzd)(DMv[2LY3mC9bap"><field name="OP">AND</field><value name="A"><block type="gamepad_getProperty_Boolean" id="O5chx^N0nMMhcbZt6Z;c"><field name="IDENTIFIER">gamepad1</field><field name="PROP">A</field><data>{"IDENTIFIER":"gamepad1"}</data></block></value><value name="B"><block type="logic_compare" id="CKaEKTS1~BhB+GMLN.ms"><field name="OP">GT</field><value name="A"><block type="math_arithmetic" id="x{ruhUgsEN.#zYO1]Hd+"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="HlfN22esbD73$N)3uF%K"><field name="NUM">1</field></shadow><block type="elapsedTime2_getProperty_Number" id="rp--#Y+UQeVAvI#$@_gl"><field name="PROP">Milliseconds</field><value name="ELAPSED_TIME"><block type="variables_get" id="9cehD)_u:kyq*5k#TMRs"><field name="VAR" id="T7%#zJxQ(*Fa;es,c%xI" variabletype="">runtime</field></block></value></block></value><value name="B"><shadow type="math_number" id="dEU,W:VFRg;30g*4m=:G"><field name="NUM">1</field></shadow><block type="variables_get" id="/P#qFz(upn6e(,3?~^kL"><field name="VAR" id="?p5@I0-O]W7?zhLVYPgB" variabletype="">atime1</field></block></value></block></value><value name="B"><block type="math_number" id="F2lMHE[|@cMF?Iv}8/si"><field name="NUM">500</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="P@FO]KLAsU$LB/nB9*!d"><field name="VAR" id="?p5@I0-O]W7?zhLVYPgB" variabletype="">atime1</field><value name="VALUE"><block type="elapsedTime2_getProperty_Number" id="D)mN.^g03VFKZfNd}A(u"><field name="PROP">Milliseconds</field><value name="ELAPSED_TIME"><block type="variables_get" id="1X|#RRs~+5,cLJmX_b3Z"><field name="VAR" id="T7%#zJxQ(*Fa;es,c%xI" variabletype="">runtime</field></block></value></block></value><next><block type="controls_if" id="Ro/:QnqyM`k+YW]:bV[Y"><mutation elseif="1"></mutation><value name="IF0"><block type="logic_compare" id="_:{+`Z29qs?KS$i-sR_c"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="4NVuY%py~POH@p,g6PNL"><field name="VAR" id="_H72cg6T_XBH2Qg,zk72" variabletype="">atoggle1</field></block></value><value name="B"><block type="logic_boolean" id="7St67A=UzWIE]X@D]bu2"><field name="BOOL">TRUE</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="9qQ(UW$ng;SnQdEW6sua"><field name="VAR" id="_H72cg6T_XBH2Qg,zk72" variabletype="">atoggle1</field><value name="VALUE"><block type="logic_boolean" id="^x`a-:ES-HR|uuLzflxq"><field name="BOOL">FALSE</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="*+02Fzv_edqsW9i9m%rf"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="A/t4s9#uIMR6DcZV0:rZ"><field name="VAR" id="_H72cg6T_XBH2Qg,zk72" variabletype="">atoggle1</field></block></value><value name="B"><block type="logic_boolean" id="H9ia2YwjFQgeRVHTQZ3m"><field name="BOOL">FALSE</field></block></value></block></value><statement name="DO1"><block type="variables_set" id="aBMFNnX%BFZgLR/J}FAD"><field name="VAR" id="_H72cg6T_XBH2Qg,zk72" variabletype="">atoggle1</field><value name="VALUE"><block type="logic_boolean" id="nMzlE~y@J/~}{kh]2lat"><field name="BOOL">TRUE</field></block></value></block></statement></block></next></block></statement><next><block type="telemetry_addNumericData_Number" id="s7#dwW(TK([!_JpT/gM4"><value name="KEY"><shadow type="text" id="/l$/bcgu=H0EMuHx7LZ}"><field name="TEXT">key</field></shadow><block type="text" id="t#Q{Fbacla1%LFO710K["><field name="TEXT">A Time Difference</field></block></value><value name="NUMBER"><shadow type="math_number" id="Gl3`iQf$@B$~|~xeidCw"><field name="NUM">123</field></shadow><block type="math_arithmetic" id="/wgve+@T~_oHC9yC0nc]"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="HlfN22esbD73$N)3uF%K"><field name="NUM">1</field></shadow><block type="elapsedTime2_getProperty_Number" id="XRl(+V_r31[Np/cav}{Y"><field name="PROP">Milliseconds</field><value name="ELAPSED_TIME"><block type="variables_get" id="~)6MIrUc8k4/~7IL$Evj"><field name="VAR" id="T7%#zJxQ(*Fa;es,c%xI" variabletype="">runtime</field></block></value></block></value><value name="B"><shadow type="math_number" id="dEU,W:VFRg;30g*4m=:G"><field name="NUM">1</field></shadow><block type="variables_get" id="[+CgmRNkE|Tz^f2(N{}~"><field name="VAR" id="?p5@I0-O]W7?zhLVYPgB" variabletype="">atime1</field></block></value></block></value><next><block type="telemetry_addTextData_All" id="+}k:y.+r8WMwmRGJ[p$|"><value name="KEY"><shadow type="text" id="!/3axb[g*5R**p!/Un9W"><field name="TEXT">key</field></shadow><block type="text" id="@Gl1g#-=L(!@u`m@*6dv"><field name="TEXT">A Toggled</field></block></value><value name="TEXT"><shadow type="text" id="y+7,WhAE~.?w9Vi]0Au$"><field name="TEXT">text</field></shadow><block type="variables_get" id="g.BMZFDWMk+q~vE6j.c!"><field name="VAR" id="_H72cg6T_XBH2Qg,zk72" variabletype="">atoggle1</field></block></value><next><block type="telemetry_update" id="VD5f|pw_Ak0+Ql:bg_n1"></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></statement></block></xml><?xml version='1.0' encoding='UTF-8' standalone='yes' ?><Extra><OpModeMeta flavor="TELEOP" group="" /><Enabled value="true" /></Extra>