Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
feat: setSpeed for pivot
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 committed Dec 12, 2024
1 parent 9edc483 commit a39e52e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/kotlin/com/frcteam3636/frc2024/subsystems/arm/Arm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ object Arm : Subsystem {
io.pivotToPosition(inputs.position)
})!!

fun setSpeed(percent: Double) =
startEnd({
io.setVoltage(Volts.of(percent * 12.0))
}, {
io.setVoltage(Volts.of(0.0))
})!!

fun sysIdQuasistatic(direction: Direction) =
sysID.quasistatic(direction)!!

Expand Down

0 comments on commit a39e52e

Please sign in to comment.