From 56d410ed57af9e513c9109d2862abbb06309efaa Mon Sep 17 00:00:00 2001 From: j5155 <54331556+j5155@users.noreply.github.com> Date: Sun, 1 Dec 2024 17:17:57 -0900 Subject: [PATCH] Fix PID controller attempt 2 --- .../kotlin/page/j5155/expressway/ftc/motion/PIDFController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftc/src/main/kotlin/page/j5155/expressway/ftc/motion/PIDFController.kt b/ftc/src/main/kotlin/page/j5155/expressway/ftc/motion/PIDFController.kt index 125fd68..8c2c169 100644 --- a/ftc/src/main/kotlin/page/j5155/expressway/ftc/motion/PIDFController.kt +++ b/ftc/src/main/kotlin/page/j5155/expressway/ftc/motion/PIDFController.kt @@ -123,7 +123,7 @@ open class PIDFController */ @JvmOverloads open fun update( - timestamp: Long = System.nanoTime(), + timestamp: Long, measuredPosition: Double, measuredVelocity: Double? = null ): Double {