diff options
Diffstat (limited to 'robot/problems/introduction/rotateback')
-rw-r--r-- | robot/problems/introduction/rotateback/common.py | 2 | ||||
-rw-r--r-- | robot/problems/introduction/rotateback/sl.py | 12 |
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>''' +] |