Skip to content

Commit

Permalink
Merge pull request #21 from IDATT1004-Team13-H2025/robot-drive
Browse files Browse the repository at this point in the history
Testet kjøring
  • Loading branch information
martaron authored Oct 24, 2025
2 parents f78f91c + d5279cb commit 97127cd
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 97127cd

Please sign in to comment.