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

Commit

Permalink
fixed suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaJenkins committed Nov 20, 2024
1 parent 06f03e7 commit 40a0095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/main/java/com/frcteam3636/frc2024/subsystems/arm/Arm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ object Arm : Subsystem {
Volts.of(4.0),
null
) { state -> SignalLogger.writeString("state", state.toString()) },
Mechanism(this::voltageDrive, null, this)
Mechanism(io::setVoltage, null, this)
)

private fun voltageDrive(measure: Measure<Voltage>) {
io.setVoltage(measure)
}

override fun periodic() {
io.updateInputs(inputs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.littletonrobotics.junction.Logger
object Indexer: Subsystem {
private var io: IndexerIO = IndexerIOReal()

var inputs = IndexerIO.IndexerInputs()
var inputs = IndexerIO.Inputs()

override fun periodic() {
io.updateInputs(inputs)
Expand Down Expand Up @@ -40,10 +40,4 @@ object Indexer: Subsystem {
io.setSpinSpeed(0.0)
}
)

fun outtakeBalloon(): Command =
startEnd(
{io.setSpinSpeed(-0.5)},
{io.setSpinSpeed(0.0)}
)
}

0 comments on commit 40a0095

Please sign in to comment.