diff options
author | Martin Možina <martin.mozina@fri.uni-lj.si> | 2015-10-14 18:08:44 +0200 |
---|---|---|
committer | Martin Možina <martin.mozina@fri.uni-lj.si> | 2015-10-14 18:08:44 +0200 |
commit | 531bde7a2fe3d643e9b6ffe690405b6cc07c4964 (patch) | |
tree | 9fcdd54ec25cacc32cd5aaacfb731c174278fab8 /robot/problems/introduction/square20/sl.py | |
parent | 1b936a961e39b2a71b5a773776474446f0c58447 (diff) | |
parent | b1deb24a05a380450ed9dc77c3155a16bd204dfc (diff) |
Merge branch 'master' of 192.168.15.97:codeq-problems
Diffstat (limited to 'robot/problems/introduction/square20/sl.py')
-rw-r--r-- | robot/problems/introduction/square20/sl.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/robot/problems/introduction/square20/sl.py b/robot/problems/introduction/square20/sl.py new file mode 100644 index 0000000..f52ddf7 --- /dev/null +++ b/robot/problems/introduction/square20/sl.py @@ -0,0 +1,29 @@ +# coding=utf-8 + +name = 'Kvadrat 20 cm' +slug = 'Kvadrat 20 cm' + +description = '''\ +<p>Robot naj enkrat prevozi kvadrat s stranico 20 cm.</p>''' + +hint = { + 'mW_init':['''<p>Robota v programu predstavimo z mindstorms_widgets(): <code>robot = mindstorms_widgets()</code>.</p>'''], + 'connectMotorLeft':['''<p>Robotu priključi levi motor</p>''', + '''<p><code>robot.connect_motor( 'left' )</code>.</p>'''], + 'connectMotorRight':['''<p>Robotu priključi desni motor</p>''', + '''<p><code>robot.connect_motor( 'right' )</code>.</p>'''], + 'moveSteering':['''<p>Sinhroniziraj motorja in ju zaženi.</p>''', + '''<p>Za sinhronizirano vožnjo je najbolj primerna metoda <code>robot.move_steering( ... )</code>.</p>'''], + 'onForSeconds':['''<p>Prvi argument metode <code>robot.move_steering</code> naj pove, da bo delovanje motorjev časovno omejeno.</p>''', + '''<p><code>robot.move_steering('on_for_seconds', ... )</code>.</p>'''], + 'direction':['''<p>Navedi smer premikanja motorjev, naravnost = 0.</p>''', + '''<p><code>robot.move_steering( 'on_for_seconds', direction=0, ... )</code>.</p>'''], + 'seconds':['''<p>Napiši časovno omejitev v sekundah.</p>''', + '''<p><code>robot.move_steering( 'on_for_seconds', direction=0, seconds=... )</code>.</p>''', + '''<p><code>robot.move_tank( 'on_for_seconds', lr_power=[20,-20], seconds=.95 )</code>.</p>''',], + 'moveTank': ['''<p>Robot naj se obrne na mestu.</p>''', + '''<p>Najprimernejša metoda za to je <code>move_tank</code></p>''', + '''<p><code>robot.move_tank( 'on_for_seconds', ... )</code>.</p>'''], + 'lrPower': ['''<p>Za obrat na mestu se morata kolesi vrteti z enako močjo in v nasprotni smeri.</p>''', + '''<p><code>robot.move_tank( 'on_for_seconds', lr_power=[20,-20], seconds=.95 )</code>.</p>'''], +} |