Skip to content

Commit

Permalink
Testet kjøring
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsp committed Oct 24, 2025
1 parent f78f91c commit d5279cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions py/src/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

5 changes: 2 additions & 3 deletions py/src/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit d5279cb

Please sign in to comment.