Skip to content

Commit

Permalink
sebby fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrusnaficy committed Dec 7, 2023
1 parent 8981d39 commit 2688541
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions command/drivetrain.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
from subsystem.config.subsystem_base import SubsystemCommand
from subsystem import Drivetrain

from oi.keymap import Keymap

class DriveTrain(SubsystemCommand[Drivetrain]):

def __init__(self, subsystem: Drivetrain):
super().__init__(subsystem)
self.subsystem = subsystem

def initialize(self) -> None:
self.subsystem.init()
...

def execute(self) -> None:
...
left = Keymap.Drivetrain.DRIVE_X_AXIS.value
right = Keymap.Drivetrain.DRIVE_Y_AXIS.value

self.subsystem.set_raw_output(left, True)
self.subsystem.set_raw_output(right, False)

def isFinished(self) -> bool:
return False
Expand Down

0 comments on commit 2688541

Please sign in to comment.