Skip to content

Commit

Permalink
Merge pull request #24 from IDATT1004-Team13-H2025/robot-drive
Browse files Browse the repository at this point in the history
La til noen drive funksjoner
  • Loading branch information
odingr authored Oct 29, 2025
2 parents 20422d9 + 3091689 commit c58ff86
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 c58ff86

Please sign in to comment.