Skip to content

Commit

Permalink
Slides Constants
Browse files Browse the repository at this point in the history
  • Loading branch information
SachetK committed Nov 28, 2024
1 parent 4a50493 commit c78550e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.firstinspires.ftc.teamcode.constants

enum class SlidesConstants(val value: Double) {
kP(0.02),
kP(0.014),
kI(0.0),
kD(0.00045),
kG(0.1)
kD(0.0),
kG(0.2)
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class SlidesPIDTuner : CommandOpMode() {

companion object {
@JvmField
// NOTE THAT THIS VALUE SHOULD BE DEGREES
var target = 0.0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ElevatorSubsystem(
}

override fun periodic() {
controller.setPID(kP, kI, kD)
val output = controller.calculate(slidePos)

if (enabled)
Expand All @@ -69,7 +70,7 @@ class ElevatorSubsystem(

companion object {
@JvmField
var kP = 0.0
var kP = 0.014

@JvmField
var kI = 0.0
Expand All @@ -78,6 +79,6 @@ class ElevatorSubsystem(
var kD = 0.0

@JvmField
var kG = 0.1
var kG = 0.2
}
}

0 comments on commit c78550e

Please sign in to comment.