Skip to content

Commit

Permalink
Fikset feil, så bil kjører fra minnet nå
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsp committed Oct 29, 2025
1 parent d02e8d6 commit 967de86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion py/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

except Exception as e:
ev3 = EV3Brick()
ev3.screen.print("Failed to import: ", e)
ev3.screen.print("Failed to import: ")
while True:
wait(50)


# This program requires LEGO EV3 MicroPython v2.0 or higher.
Expand Down
12 changes: 10 additions & 2 deletions py/src/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ def __init__(self, drive: Drive, sensors: Sensors):

def start(self):
self.drive.forward(50)
pass
while True:
wait(50)
this.stop()

def stop(self):
self.drive.forward(0)
pass

def turn_left(self):
self.drive.turn(50, 90)


def turn_right(self):
self.drive.turn(50, -90)

0 comments on commit 967de86

Please sign in to comment.