Skip to content

Commit c39d12e

Browse files
committed
gear ratios
1 parent 7f762ac commit c39d12e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/kotlin/com/frcteam3636/bunnybots2025/subsystems/intake/IntakeIO.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ class IntakeIOReal : IntakeIO {
142142
val PROFILE_ACCELERATION = 0.0.degreesPerSecondPerSecond
143143
const val PROFILE_JERK = 0.0
144144
const val ENCODER_MAGNET_OFFSET = 0.0
145-
const val ENCODER_TO_PIVOT_GEAR_RATIO = 0.0
146-
const val MOTOR_TO_ENCODER_GEAR_RATIO = 0.0
145+
const val ENCODER_TO_PIVOT_GEAR_RATIO = 2.25
146+
const val MOTOR_TO_ENCODER_GEAR_RATIO = 4.0
147147
}
148148
}
149149

@@ -181,4 +181,4 @@ class IntakeIOSim : IntakeIO {
181181
goal = TrapezoidProfile.State(pivotPosition.inRotations(), 0.0)
182182
profileTimer.reset()
183183
}
184-
}
184+
}

src/main/kotlin/com/frcteam3636/bunnybots2025/subsystems/shooter/PivotIO.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ class PivotIOReal : PivotIO {
131131

132132
companion object Constants {
133133
private val PID_GAINS = PIDGains(6.0, 0.0, 0.0)
134-
private const val SENSOR_TO_MECHANISM_GEAR_RATIO = 0.0
135-
private const val ROTOR_TO_SENSOR_GEAR_RATIO = 0.0
134+
private const val SENSOR_TO_MECHANISM_GEAR_RATIO = 37.25
135+
private const val ROTOR_TO_SENSOR_GEAR_RATIO = 1.0
136136
private const val MAGNET_OFFSET = 0.0
137137
private val HARDSTOP_OFFSET = 12.degrees.inRotations()
138138
val PROFILE_ACCELERATION = 5.0.degreesPerSecondPerSecond

0 commit comments

Comments
 (0)