summaryrefslogtreecommitdiff
path: root/robot/problems/introduction/circle20/naloga05_circle20.py
diff options
context:
space:
mode:
Diffstat (limited to 'robot/problems/introduction/circle20/naloga05_circle20.py')
-rw-r--r--robot/problems/introduction/circle20/naloga05_circle20.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/robot/problems/introduction/circle20/naloga05_circle20.py b/robot/problems/introduction/circle20/naloga05_circle20.py
new file mode 100644
index 0000000..e95d4f4
--- /dev/null
+++ b/robot/problems/introduction/circle20/naloga05_circle20.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import time
+from ev3dev import *
+from mindstorms_widgets import mindstorms_widgets
+
+robot = mindstorms_widgets()
+robot.connect_motor( 'left' )
+robot.connect_motor( 'right' )
+
+fct = 9 # full circle time
+rad = 20 # Direction to make a good radius for the circle
+robot.move_steering( 'on_for_seconds', direction=rad, power=40, seconds=fct ) \ No newline at end of file