Skip to content

Commit

Permalink
La til noen drive funksjoner
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsp committed Oct 24, 2025
1 parent d5279cb commit 3091689
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions py/src/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ def forward(self, speed):

def backward(self, speed):
self.driveBase.drive(speed, 0 )

def turn(self, speed, angle):
self.driveBase.drive(speed, angle)


8 changes: 7 additions & 1 deletion py/src/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@ def __init__(self, drive: Drive, sensors: Sensors):
self.drive = drive
self.sensors = sensors


def start(self):
self.drive.forward(50)
pass

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

0 comments on commit 3091689

Please sign in to comment.