summaryrefslogtreecommitdiff
path: root/robot/problems/introduction/countlines
diff options
context:
space:
mode:
authorJure Žabkar <jure.zabkar@fri.uni-lj.si>2015-12-15 10:34:40 +0100
committerJure Žabkar <jure.zabkar@fri.uni-lj.si>2015-12-15 13:17:48 +0100
commitb4e46b75f5e2a890b41d2e20a89767590e54ccb4 (patch)
treed9ee2fd8c1543bb4f7fd9db0bace83efc01c999e /robot/problems/introduction/countlines
parentbe94b55b835283de53c686343164641e15abe806 (diff)
Dodani plani za robotske probleme.
Diffstat (limited to 'robot/problems/introduction/countlines')
-rw-r--r--robot/problems/introduction/countlines/common.py1
-rw-r--r--robot/problems/introduction/countlines/sl.py13
2 files changed, 14 insertions, 0 deletions
diff --git a/robot/problems/introduction/countlines/common.py b/robot/problems/introduction/countlines/common.py
index 6a50988..925fc06 100644
--- a/robot/problems/introduction/countlines/common.py
+++ b/robot/problems/introduction/countlines/common.py
@@ -31,6 +31,7 @@ while time.time()-start < 2.1:
stevec += 1
color = c
robot.move_steering( 'off' )
+
print( "Stevilo crt:", stevec )
'''
diff --git a/robot/problems/introduction/countlines/sl.py b/robot/problems/introduction/countlines/sl.py
index 4e1c3d4..1f8ea18 100644
--- a/robot/problems/introduction/countlines/sl.py
+++ b/robot/problems/introduction/countlines/sl.py
@@ -24,3 +24,16 @@ hint = {
'''<p>Zanka je lahko časovno omejena, npr. z uporabo metode <code>time.time()</code>.</p>''',
'''<p><code>while time.time()-start < 1.1:</code>.</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 jih šteje.</li>
+ <li>Zanka naj se konča po vnaprej določenem času, npr. 3 sekunde.</li>
+ <li>Ustavimo oba motorja.</li>
+</ol>'''
+]