summaryrefslogtreecommitdiff
path: root/robot/problems/introduction/rotateback
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/rotateback
parentbe94b55b835283de53c686343164641e15abe806 (diff)
Dodani plani za robotske probleme.
Diffstat (limited to 'robot/problems/introduction/rotateback')
-rw-r--r--robot/problems/introduction/rotateback/common.py2
-rw-r--r--robot/problems/introduction/rotateback/sl.py12
2 files changed, 12 insertions, 2 deletions
diff --git a/robot/problems/introduction/rotateback/common.py b/robot/problems/introduction/rotateback/common.py
index 2dacaf3..7c8ce44 100644
--- a/robot/problems/introduction/rotateback/common.py
+++ b/robot/problems/introduction/rotateback/common.py
@@ -10,8 +10,6 @@ number = 11
visible = True
solution = '''\
-from mindstorms_widgets import mindstorms_widgets
-
def sgn(x):
return -1 if x<0 else (1 if x>0 else 0)
diff --git a/robot/problems/introduction/rotateback/sl.py b/robot/problems/introduction/rotateback/sl.py
index 269ea34..3242a80 100644
--- a/robot/problems/introduction/rotateback/sl.py
+++ b/robot/problems/introduction/rotateback/sl.py
@@ -31,3 +31,15 @@ hint = {
'while':['''<p>Program naj teče v neskončni zanki.</p>''',
'''<p><code>while 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>Robotu dodamo žiroskop in ga resetiramo.</li>
+ <li>Robotu dodamo stikalo.</li>
+ <li>V neskončni zanki beremo vrednost kota z žiroskopom.</li>
+ <li>Glede na zasuk iz začetne lege, robota na mestu obrnemo v začetno smer.</li>
+</ol>'''
+]