Skip to content

Commit

Permalink
Added to Feeder
Browse files Browse the repository at this point in the history
  • Loading branch information
bit-turtle committed Jan 25, 2024
1 parent 300ca93 commit 33fca34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/frc/team449/robot2024/subsystems/Feeder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import edu.wpi.first.util.sendable.SendableBuilder
import edu.wpi.first.wpilibj2.command.Command
import edu.wpi.first.wpilibj2.command.SubsystemBase
import frc.team449.robot2024.constants.subsystem.FeederConstants
import frc.team449.robot2024.constants.subsystem.IntakeConstants
import frc.team449.robot2024.constants.subsystem.FeederConstants
import frc.team449.system.encoder.NEOEncoder
import frc.team449.system.motor.WrappedMotor
import frc.team449.system.motor.createSparkMax
Expand All @@ -12,13 +12,13 @@ class Feeder(
) : SubsystemBase() {
fun feed(): Command {
return this.runOnce {
motor.setVoltage(IntakeConstants.INTAKE_VOLTAGE)
motor.setVoltage(FeederConstants.FEEDER_VOLTAGE)
}
}

fun reverse(): Command {
return this.runOnce {
motor.setVoltage(IntakeConstants.REVERSE_VOLTAGE)
motor.setVoltage(FeederConstants.REVERSE_VOLTAGE)
}
}

Expand Down

0 comments on commit 33fca34

Please sign in to comment.