generated from Choate-Robotics/7407-DriveCode-Template-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,464 additions
and
282 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import Generic, TypeVar | ||
import commands2 | ||
|
||
from toolkit.subsystem import Subsystem | ||
|
||
T = TypeVar("T", bound=Subsystem) | ||
|
||
|
||
class BasicCommand(commands2.Command): | ||
""" | ||
Extendable basic command | ||
""" | ||
... | ||
|
||
|
||
class SubsystemCommand(BasicCommand, Generic[T]): | ||
""" | ||
Extendable subsystem command | ||
""" | ||
|
||
def __init__(self, subsystem: T): | ||
super().__init__() | ||
self.subsystem = subsystem | ||
self.addRequirements(subsystem) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
|
||
from units.SI import radians_per_second, radians | ||
|
||
|
||
|
||
class Motor: | ||
def init(self): ... | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from toolkit.motors.ctre_motors import TalonSRX, TalonFX, TalonGroup, TalonConfig | ||
from toolkit.motors.ctre_motors import TalonFX, TalonConfig | ||
from toolkit.motors.rev_motors import SparkMax, SparkMaxConfig |
Oops, something went wrong.