Skip to content

Commit

Permalink
started hardware code
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhog committed Jan 18, 2024
1 parent f5faca7 commit 27a2573
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ object ElevatorConstants {
val HOMING_STALL_TIME_THRESHOLD = 0.0.seconds
val HOMING_APPLIED_VOLTAGE = 0.0.volts
val ELEVATOR_GROUND_OFFSET = 0.0.inches

val LEADER_VOLTAGE = 0.0.volts
val LEADER_GEAR_RATIO = 0.0
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
package com.team4099.robot2023.subsystems.elevator

object ElevatorIOKraken {
import com.ctre.phoenix6.hardware.TalonFX
import com.team4099.robot2023.config.constants.Constants
import com.team4099.robot2023.config.constants.ElevatorConstants
import org.team4099.lib.units.ctreLinearMechanismSensor

object ElevatorIOKraken: ElevatorIO {
private val elevatorLeaderKraken = TalonFX(Constants.Elevator.LEADER_MOTOR_ID)
private val elevatorFollowerKraken = TalonFX(Constants.Elevator.FOLLOWER_MOTOR_ID)
private val leaderSensor = ctreLinearMechanismSensor(elevatorLeaderKraken, ElevatorConstants.LEADER_GEAR_RATIO, ElevatorConstants.LEADER_VOLTAGE)
}

0 comments on commit 27a2573

Please sign in to comment.