diff options
author | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-15 10:34:40 +0100 |
---|---|---|
committer | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-15 13:17:48 +0100 |
commit | b4e46b75f5e2a890b41d2e20a89767590e54ccb4 (patch) | |
tree | d9ee2fd8c1543bb4f7fd9db0bace83efc01c999e /robot/problems/introduction/printcolors | |
parent | be94b55b835283de53c686343164641e15abe806 (diff) |
Dodani plani za robotske probleme.
Diffstat (limited to 'robot/problems/introduction/printcolors')
-rw-r--r-- | robot/problems/introduction/printcolors/common.py | 2 | ||||
-rw-r--r-- | robot/problems/introduction/printcolors/sl.py | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/robot/problems/introduction/printcolors/common.py b/robot/problems/introduction/printcolors/common.py index 4377c57..9b06575 100644 --- a/robot/problems/introduction/printcolors/common.py +++ b/robot/problems/introduction/printcolors/common.py @@ -11,8 +11,6 @@ visible = True solution = '''\ import time -from ev3dev import * -from mindstorms_widgets import mindstorms_widgets color_table = ['none', 'black', 'blue', 'green', 'yellow', 'red', 'white', 'brown'] diff --git a/robot/problems/introduction/printcolors/sl.py b/robot/problems/introduction/printcolors/sl.py index d233b0e..c705eaa 100644 --- a/robot/problems/introduction/printcolors/sl.py +++ b/robot/problems/introduction/printcolors/sl.py @@ -34,3 +34,16 @@ hint = { '''<p><code>while time.time()-start < 1.1:</code>.</p>'''], 'print':['''<p>V zanki na zaslon izpisuj barvo, ki jo zazna robot.</p>'''] } + +plan = ['''\ +<p>Program izvedemo v naslednjih korakih:</p> +<ol> + <li>Naredimo objekt mindstorms_widgets(), s katerim predstavimo robota.</li> + <li>Nanj povežemo oba pogonska motorja.</li> + <li>Povežemo barvni senzor.</li> + <li>Vklopimo oba motorja tako, da robot vozi naravnost.</li> + <li>V zanki naj robot bere barve in vsako izpiše na zaslon.</li> + <li>Zanka naj se konča po vnaprej določenem času, npr. 3 sekunde.</li> + <li>Ustavimo oba motorja.</li> +</ol>''' +] |