Skip to content

Commit

Permalink
did it
Browse files Browse the repository at this point in the history
  • Loading branch information
alexl1239 committed Dec 5, 2024
1 parent 59f061e commit b64b27b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from toolkit.motors.ctre_motors import TalonConfig

DEBUG_MODE: bool = True
# MAKE SURE TO MAKE THIS FALSE FOR COMPETITION
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -16,4 +18,10 @@
# 3 = ERROR
# 4 = SETUP
# anything else will log nothing
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


intake_id= 1 #PLACEHOLDER
INTAKE_CONFIG= TalonConfig(
0.315, 0, 0.0, 0, 0, brake_mode=False, current_limit=60, kV=0.12 #PLACEHOLDERS
)
22 changes: 22 additions & 0 deletions subsystem/intake.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import config
import constants
from toolkit.subsystem import Subsystem
from toolkit.motors.rev_motors import TalonFX

class Intake(Subsystem):

def __init__(self):
super().__init(self)

self.motor: TalonFX = TalonFX(
can_id=config.intake_id,
config=config.INTAKE_CONFIG,
inverted=False
)

def start_intake(self):
self.motor.set_raw_output(10) #placeholder

def stop_intake(self):
self.motor.set_raw_output(0)

0 comments on commit b64b27b

Please sign in to comment.