diff options
author | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-23 11:28:05 +0100 |
---|---|---|
committer | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-23 11:28:05 +0100 |
commit | f80206e6a4e4cec1574a375cb04dbdf07d3e02cd (patch) | |
tree | f5e9c17d8b5d4f212b7460496fdbb7226253f086 /robot/problems/introduction/forward1m | |
parent | 0883cb2a6b0bac23bd7553618f4e8db7c882a757 (diff) |
angleska verzija
Diffstat (limited to 'robot/problems/introduction/forward1m')
-rw-r--r-- | robot/problems/introduction/forward1m/en.py | 21 | ||||
-rw-r--r-- | robot/problems/introduction/forward1m/sl.py | 2 |
2 files changed, 20 insertions, 3 deletions
diff --git a/robot/problems/introduction/forward1m/en.py b/robot/problems/introduction/forward1m/en.py index bdf2a45..f923059 100644 --- a/robot/problems/introduction/forward1m/en.py +++ b/robot/problems/introduction/forward1m/en.py @@ -7,9 +7,26 @@ name = 'Forward 1m' slug = 'Forward 1m' description = '''\ - + Write a program that would make the robot drive forward and stop after 1 meter. ''' hint = { - + 'mW_init':mod.hint['init'], + 'connectMotorLeft':mod.hint['connectMotorLeft'], + 'connectMotorRight':mod.hint['connectMotorRight'], + 'moveSteering':mod.hint['moveSteering'], + 'onForRotations':mod.hint['onForRotations'], + 'direction':mod.hint['direction']+['''<p><code>robot.move_steering( '...', direction=0, ... )</code>.</p>'''], + 'seconds':mod.hint['seconds']+['''<p><code>robot.move_steering( 'on_for_seconds', direction=0, seconds=3 )</code>.</p>'''], + 'rotations':mod.hint['rotations'], } + +plan = ['''\ +<p>Program izvedemo v naslednjih korakih:</p> +<ol> + <li>create a mindstorms_widgets() object, which represents the robot in your code.</li> + <li>connect the driving motors.</li> + <li>measure the circumference of robot's wheels and compute the number of rotations per meter.</li> + <li>synchronize the motors and run them so that the robot would move forward for computed number of rotations.</li> +</ol>''' +] diff --git a/robot/problems/introduction/forward1m/sl.py b/robot/problems/introduction/forward1m/sl.py index 2240d3c..f6209eb 100644 --- a/robot/problems/introduction/forward1m/sl.py +++ b/robot/problems/introduction/forward1m/sl.py @@ -4,7 +4,7 @@ name = 'Naprej 1m' slug = 'Naprej 1m' description = '''\ -<p>Napiši program, da bo robot peljal naravnost naprej 3 sekunde in se nato ustavil.</p>''' +<p>Napiši program, da bo robot peljal 1 meter naravnost in se nato ustavil.</p>''' hint = { 'mW_init':['''<p>Robota v programu predstavimo z mindstorms_widgets(): <code>robot = mindstorms_widgets()</code>.</p>'''], |