Skip to content

Commit

Permalink
Feeder Constants and Subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
adorobantu2008 committed Jan 25, 2024
1 parent d0701ef commit 12a8657
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/kotlin/frc/team449/robot2024/subsystems/Feeder.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package frc.team449.robot2024.subsystems

import com.revrobotics.CANSparkMax
import edu.wpi.first.util.sendable.SendableBuilder
import edu.wpi.first.wpilibj2.command.Command
import edu.wpi.first.wpilibj2.command.SubsystemBase
Expand All @@ -16,7 +15,7 @@ class Feeder(
fun intake(): Command {
return this.runOnce {
motor.setVoltage(FeederConstants.INTAKE_VOLTAGE)
motor.stopMotor();
motor.stopMotor()
}
}

Expand All @@ -38,9 +37,9 @@ class Feeder(
}

companion object {
fun createProtoUndertaker(): Feeder {
fun createFeeder(): Feeder {
val motor = createSparkMax(
"ProtoUndertaker Motor",
"Feeder Motor",
FeederConstants.MOTOR_ID,
NEOEncoder.creator(
1.0,
Expand Down

0 comments on commit 12a8657

Please sign in to comment.