Skip to content
Snippets Groups Projects
Commit bc509d5e authored by Dominik HAefner's avatar Dominik HAefner
Browse files

changed stuff in driving back to normal, this time completly

parent 163ef1ec
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,13 @@ import time
from encoder import Encoder
import PWMoutputFunction
GPIO Mode (BOARD / BCM)
#GPIO Mode(BOARD / BCM)
GPIO.setmode(GPIO.BCM)
print(GPIO.VERSION)
LEFTMOTOR = 17
GPIO.setup(LEFTMOTOR, GPIO.OUT)
class Driving:
def __init__ (self):
self.circumference = 21.0
......@@ -29,10 +32,10 @@ class Driving:
def stop(self):
self.speed= 0
def isCarStopped(self)
def isCarStopped(self):
if self.speed ==0:
return True
else
else:
return False
def driveForward(self, distance, speed):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment