From d5279cb140d84c78ea9001bfa597b66d3e8bb922 Mon Sep 17 00:00:00 2001 From: Robin Strand Prestmo Date: Fri, 24 Oct 2025 15:32:49 +0200 Subject: [PATCH] =?UTF-8?q?Testet=20kj=C3=B8ring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/src/drive.py | 4 ++-- py/src/sensors.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/py/src/drive.py b/py/src/drive.py index d8fa68c..e6870a6 100644 --- a/py/src/drive.py +++ b/py/src/drive.py @@ -17,8 +17,8 @@ def __init__(self, motors: tuple, dimensions: tuple): def forward(self, speed): - pass + self.driveBase.drive(speed, 0) def backward(self, speed): - pass + self.driveBase.drive(speed, 0 ) \ No newline at end of file diff --git a/py/src/sensors.py b/py/src/sensors.py index d9e2f0e..b111f4f 100644 --- a/py/src/sensors.py +++ b/py/src/sensors.py @@ -9,9 +9,8 @@ from pybricks.media.ev3dev import SoundFile, ImageFile class Sensors(): - def __init__(self, colorSensor: ColorSensor, ultrasonicSensor: UltrasonicSensor): + def __init__(self, sensors: tuple): - self.color = colorSensor - self.ultrasonic = ultrasonicSensor + self.color, self.ultrasonic = sensors \ No newline at end of file