Add linefollower
This commit is contained in:
parent
002db9d650
commit
1ee4a1e1ef
1 changed files with 4 additions and 4 deletions
|
@ -12,13 +12,13 @@ Vorwärts und rückwärts fahren
|
|||
from compLib.Motor import *
|
||||
|
||||
def forward():
|
||||
Motor.power(0, -30);
|
||||
Motor.power(3, 30);
|
||||
Motor.power(0, -30)
|
||||
Motor.power(3, 30)
|
||||
|
||||
|
||||
def backward():
|
||||
Motor.power(0, 30);
|
||||
Motor.power(3, -30);
|
||||
Motor.power(0, 30)
|
||||
Motor.power(3, -30)
|
||||
|
||||
def main():
|
||||
print("hallo ich bin ein roboter beep buup")
|
||||
|
|
Reference in a new issue