blob: e95d4f4f1d21d7f957cf8715c9605979ea30b8d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 )
|