This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
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
1 parent
a8fbe9f
commit a2386b4
Showing
2 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
18 changes: 17 additions & 1 deletion
18
src/main/java/com/frcteam3636/frc2024/subsystems/wrist/Wrist.kt
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,4 +1,20 @@ | ||
package com.frcteam3636.frc2024.subsystems.wrist | ||
|
||
object Wrist { | ||
import com.frcteam3636.frc2024.Robot | ||
import com.frcteam3636.frc2024.subsystems.intake.IntakeIO | ||
import com.frcteam3636.frc2024.subsystems.wrist.WristIO | ||
import edu.wpi.first.wpilibj2.command.Command | ||
import edu.wpi.first.wpilibj2.command.Subsystem | ||
import org.littletonrobotics.junction.Logger | ||
|
||
object Wrist: Subsystem { | ||
private var io: WristIO = WristIO.WristIOKraken() | ||
|
||
var inputs = IntakeIO.IntakeInputs() | ||
|
||
override fun periodic() { | ||
Logger.processInputs("Intake", inputs) | ||
//the wrist should always be parallel to the ground | ||
io.pivotToAndStop() //use position variable from arm | ||
} | ||
} |
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