Skip to content

Instantly share code, notes, and snippets.

@gnarmis
Created April 24, 2018 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnarmis/9c2ed39c5e8efb0f7d062860f90baaaa to your computer and use it in GitHub Desktop.
Save gnarmis/9c2ed39c5e8efb0f7d062860f90baaaa to your computer and use it in GitHub Desktop.
NEPO program: simple_loop
<export xmlns="http://de.fhg.iais.roberta.blockly"><program><block_set xmlns="http://de.fhg.iais.roberta.blockly" robottype="ev3" xmlversion="2.0" description="" tags=""><instance x="178" y="45"><block type="robControls_start" id="KF=O@fUtUJy5HXbAjbK(" intask="true" deletable="false"><mutation declare="false"></mutation><field name="DEBUG">FALSE</field></block><block type="robActions_motorDiff_on_for" id="hKd3voniAqPp!8a%}:FS" intask="true"><field name="DIRECTION">FOREWARD</field><value name="POWER"><block type="math_number" id="L`91X?qsI]!R;D%CgIB9" intask="true"><field name="NUM">30</field></block></value><value name="DISTANCE"><block type="math_number" id="b;FkGdy7.O1Uikrp5K.]" intask="true"><field name="NUM">25</field></block></value></block><block type="robActions_motorDiff_turn_for" id="2EKf?d!oGV3Bq/VNSZS[" intask="true"><field name="DIRECTION">LEFT</field><value name="POWER"><block type="math_number" id="PY2+{ds4_(5s1xk3/x_r" intask="true"><field name="NUM">30</field></block></value><value name="DEGREE"><block type="math_number" id="IA9:Py2juzN3o|.j}YwI" intask="true"><field name="NUM">90</field></block></value></block><block type="robControls_loopForever" id="P[E=gEdQT[A?E^tKz/7w" intask="true"><statement name="DO"><block type="robActions_motorDiff_on_for" id="%V8pT}ia{e}rdteqK!b7" intask="true"><field name="DIRECTION">FOREWARD</field><value name="POWER"><block type="math_number" id="@E^@#86XJf;ld+sJU{!e" intask="true"><field name="NUM">30</field></block></value><value name="DISTANCE"><block type="math_number" id="~)|*M%i;/[u6|(CRD|!Y" intask="true"><field name="NUM">50</field></block></value></block><block type="robActions_motorDiff_turn_for" id="Ll:UoA{S)BdR0?!=n+Z," intask="true"><field name="DIRECTION">LEFT</field><value name="POWER"><block type="math_number" id="!4eb7]ao#8t(u6w2:eBx" intask="true"><field name="NUM">30</field></block></value><value name="DEGREE"><block type="math_number" id="ma920jnU??}}(ECMG32T" intask="true"><field name="NUM">90</field></block></value></block></statement></block></instance></block_set></program><config><block_set xmlns="http://de.fhg.iais.roberta.blockly" robottype="ev3" xmlversion="2.0" description="" tags=""><instance x="336" y="50"><block type="robBrick_EV3-Brick" id="1" intask="true" deletable="false"><field name="WHEEL_DIAMETER">5.6</field><field name="TRACK_WIDTH">18</field><value name="S1"><block type="robBrick_touch" id="2" intask="true"></block></value><value name="S2"><block type="robBrick_gyro" id="3" intask="true"></block></value><value name="S3"><block type="robBrick_colour" id="4" intask="true"></block></value><value name="S4"><block type="robBrick_ultrasonic" id="5" intask="true"></block></value><value name="MB"><block type="robBrick_motor_big" id="6" intask="true"><field name="MOTOR_REGULATION">TRUE</field><field name="MOTOR_REVERSE">OFF</field><field name="MOTOR_DRIVE">RIGHT</field></block></value><value name="MC"><block type="robBrick_motor_big" id="7" intask="true"><field name="MOTOR_REGULATION">TRUE</field><field name="MOTOR_REVERSE">OFF</field><field name="MOTOR_DRIVE">LEFT</field></block></value></block></instance></block_set></config></export>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment