Skip to content

Commit

Permalink
Renamed ProtoIntakeConstants to IntakeConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
bit-turtle committed Jan 25, 2024
1 parent 30daee1 commit 26a2f37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package frc.team449.robot2024.constants.subsystem

object ProtoIntakeConstants {
object IntakeConstants {
const val MOTOR_ID = 7
const val FOLLOLWER_ID = 55
const val FOLLOWER_INV = false
Expand Down
14 changes: 7 additions & 7 deletions src/main/kotlin/frc/team449/robot2024/subsystems/Intake.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package frc.team449.robot2024.subsystems
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.ProtoIntakeConstants
import frc.team449.robot2024.constants.subsystem.IntakeConstants
import frc.team449.system.encoder.NEOEncoder
import frc.team449.system.motor.WrappedMotor
import frc.team449.system.motor.createSparkMax
Expand All @@ -14,13 +14,13 @@ class Intake(

fun intake(): Command {
return this.runOnce {
motor.setVoltage(ProtoIntakeConstants.INTAKE_VOLTAGE)
motor.setVoltage(IntakeConstants.INTAKE_VOLTAGE)
}
}

fun outtake(): Command {
return this.runOnce {
motor.setVoltage(ProtoIntakeConstants.REVERSE_VOLTAGE)
motor.setVoltage(IntakeConstants.REVERSE_VOLTAGE)
}
}

Expand All @@ -39,14 +39,14 @@ class Intake(
fun createProtoUndertaker(): ProtoUndertaker {
val motor = createSparkMax(
"ProtoUndertaker Motor",
ProtoIntakeConstants.MOTOR_ID,
IntakeConstants.MOTOR_ID,
NEOEncoder.creator(
1.0,
1.0
),
inverted = ProtoIntakeConstants.INVERTED,
currentLimit = ProtoIntakeConstants.CURRENT_LIM,
slaveSparks = mapOf(Pair(ProtoIntakeConstants.FOLLOLWER_ID, ProtoIntakeConstants.FOLLOWER_INV))
inverted = IntakeConstants.INVERTED,
currentLimit = IntakeConstants.CURRENT_LIM,
slaveSparks = mapOf(Pair(IntakeConstants.FOLLOLWER_ID, IntakeConstants.FOLLOWER_INV))
)

return ProtoUndertaker(motor)
Expand Down

0 comments on commit 26a2f37

Please sign in to comment.