-
Notifications
You must be signed in to change notification settings - Fork 0
/
220H-Driving.iqblocks
1 lines (1 loc) · 6.74 KB
/
220H-Driving.iqblocks
1
{"mode":"Blocks","hardwareTarget":"brain","workspace":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"_2.^beQjx|FGt38A,8(E\">myVariable</variable></variables><block type=\"procedures_definition\" id=\"kp#kmNH2KQdTa//(biQj\" x=\"490\" y=\"-70\"><statement name=\"custom_block\"><shadow type=\"procedures_prototype\" id=\"|)pL/PkW=9uCLgrZ,L(Z\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" proccode=\"tankdrive\" proceduredefid=\"|)pL/PkW=9uCLgrZ,L(Z\" argumentids=\"[]\" argumentnames=\"[]\" argumentdefaults=\"[]\" argumenttypes=\"[]\" warp=\"false\"></mutation></shadow></statement><next><block type=\"iq_control_forever\" id=\"alR.G`pk?pE|b7I_7*!K\"><statement name=\"SUBSTACK\"><block type=\"iq_control_if_then_else\" id=\"qR(c,s@6JEB5B8LcxhtY\"><value name=\"CONDITION\"><block type=\"iq_operator_greater_than\" id=\"-J_vZ7S^6ZcOMT9In.[/\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"lQ_U/%`B]fBdL^bXdsgk\"><field name=\"NUM\">0</field></shadow><block type=\"iq_operator_function\" id=\"8f+1Tgs#dGJu,mYsJ[(`\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"dq5Y=yxBk8`=H!C5}wVU\"><field name=\"NUM\">0</field></shadow><block type=\"iq_sensing_position_of_controller\" id=\"QO!JK^=E![H({!A.P*)5\"><field name=\"AXIS\">AxisA</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"+1Ky9wUUtg+m/A#W]FwW\"><field name=\"NUM\">5</field></shadow></value></block></value><statement name=\"SUBSTACK\"><block type=\"iq_motion_set_motor_velocity\" id=\",l;GVF0J.t(0EY]ftbZm\"><field name=\"MOTOR\">LeftDrivetrain</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\"W_O5g}!m(QeBMTv!0R8@\"><field name=\"NUM\">50</field></shadow><block type=\"iq_sensing_position_of_controller\" id=\"OvCOs}{-)MxEr*`|3wB:\"><field name=\"AXIS\">AxisA</field></block></value></block></statement><statement name=\"SUBSTACK2\"><block type=\"iq_motion_set_motor_velocity\" id=\"s@ddlS?D#!XP4c*{Wsp`\"><field name=\"MOTOR\">LeftDrivetrain</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\"X@)_.7s(mO3vXh=TWM#R\"><field name=\"NUM\">0</field></shadow></value></block></statement><next><block type=\"iq_control_if_then_else\" id=\"DI;;HYOp6wA=?5V#wvw,\"><value name=\"CONDITION\"><block type=\"iq_operator_greater_than\" id=\"5TXI;vh997bhiSz/SnZX\"><value name=\"OPERAND1\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"iq_operator_function\" id=\"s]z]u2)DOswHK_e)IhDQ\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"iq_sensing_position_of_controller\" id=\"n3V7rB.hSt.4,`u2Iut%\"><field name=\"AXIS\">AxisD</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"cGh|phx-av`F0mE6)vS8\"><field name=\"NUM\">5</field></shadow></value></block></value><statement name=\"SUBSTACK\"><block type=\"iq_motion_set_motor_velocity\" id=\"b4|wT[=[u/~$e;en98E^\"><field name=\"MOTOR\">RightDrivetrain</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\"><field name=\"NUM\">50</field></shadow><block type=\"iq_sensing_position_of_controller\" id=\"B7J{W3VczDkZJ|JEm}E5\"><field name=\"AXIS\">AxisD</field></block></value></block></statement><statement name=\"SUBSTACK2\"><block type=\"iq_motion_set_motor_velocity\" id=\"Y:vgbz]jj3^cVWW:_7^R\"><field name=\"MOTOR\">RightDrivetrain</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\"}c^@XnqeFLYGe7BsLg,d\"><field name=\"NUM\">0</field></shadow></value></block></statement><next><block type=\"iq_motion_spin\" id=\"^`O%2(?uZPce^R^?Qq71\"><field name=\"MOTOR\">LeftDrivetrain</field><field name=\"DIRECTION\">fwd</field><next><block type=\"iq_motion_spin\" id=\"Wb(8`FRdHDS3ATVlgQQD\"><field name=\"MOTOR\">RightDrivetrain</field><field name=\"DIRECTION\">fwd</field></block></next></block></next></block></next></block></statement></block></next></block><block type=\"iq_events_when_started\" id=\"2MH:h.Gg.*@OK~qepXyP\" x=\"10\" y=\"10\"><next><block type=\"procedures_call\" id=\",c`X8IkU1f-=tKR!!m|P\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" proccode=\"init\" proceduredefid=\"7D|Ed6Xt4pdDX73Epqq=\" argumentids=\"[]\" warp=\"false\"></mutation><next><block type=\"procedures_call\" id=\"fh=S(%IjAv~TFf$-zanR\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" proccode=\"tankdrive\" proceduredefid=\"|)pL/PkW=9uCLgrZ,L(Z\" argumentids=\"[]\" warp=\"false\"></mutation></block></next></block></next></block><block type=\"procedures_definition\" id=\"xx7r=0-vF?B#10.E-0aE\" x=\"10\" y=\"230\"><statement name=\"custom_block\"><shadow type=\"procedures_prototype\" id=\"IZ:##(gRkT3Utl-lV`Hd\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" proccode=\"init\" proceduredefid=\"IZ:##(gRkT3Utl-lV`Hd\" argumentids=\"[]\" argumentnames=\"[]\" argumentdefaults=\"[]\" argumenttypes=\"[]\" warp=\"false\"></mutation></shadow></statement><next><block type=\"iq_motion_set_motor_torque\" id=\"$Vq#znyDD|!^{,eu*d$*\"><field name=\"MOTOR\">LeftDrivetrain</field><value name=\"TORQUE\"><shadow type=\"math_number\" id=\"^Kb+r{ZlRakaVC_J-vR)\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"iq_motion_set_motor_torque\" id=\"t0GtQl-xx*X]~IiO%@e%\"><field name=\"MOTOR\">RightDrivetrain</field><value name=\"TORQUE\"><shadow type=\"math_number\" id=\"s];4-4EtgP@t!(acGN:0\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"iq_motion_set_motor_stopping\" id=\"L3ZJaoQv$|=/Y[bju!RN\"><field name=\"MOTOR\">LeftDrivetrain</field><field name=\"MODE\">coast</field><next><block type=\"iq_motion_set_motor_stopping\" id=\"UJ{P3UG)?1*XsPPSydlP\"><field name=\"MOTOR\">LeftDrivetrain</field><field name=\"MODE\">coast</field></block></next></block></next></block></next></block></next></block></xml>","robotConfig":[{"port":[1],"name":"LeftDrivetrain","customName":true,"deviceType":"Motor","deviceClass":"motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse"},"triportSourcePort":22},{"port":[6],"name":"RightDrivetrain","customName":true,"deviceType":"Motor","deviceClass":"motor","setting":{"reversed":"true","fwd":"forward","rev":"reverse"},"triportSourcePort":22},{"port":[],"name":"Controller","customName":false,"deviceType":"Controller","deviceClass":"controller","setting":{"left":"","leftDir":"false","right":"","rightDir":"false","e":"","eDir":"false","f":"","fDir":"false","l3r3":"","l3r3Dir":"false","drive":"none"},"triportSourcePort":22}],"slot":0,"platform":"IQ","sdkVersion":"20230818.11.00.00","appVersion":"4.0.7","fileFormat":"2.0.0","targetBrainGen":"Second","v5SoundsEnabled":false,"downloadLanguage":"python","virtualSkillsYear":"2023"}