From 661bfc4dacaa50f983b0532f53e696a03b742dfd Mon Sep 17 00:00:00 2001 From: SigmaTech <59387280+SigmaThetaTech@users.noreply.github.com> Date: Tue, 6 Feb 2024 08:27:34 -0800 Subject: [PATCH] Stylua fixes --- modules/pid/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/pid/init.lua b/modules/pid/init.lua index 30eb8533..f1f81b5c 100644 --- a/modules/pid/init.lua +++ b/modules/pid/init.lua @@ -49,7 +49,7 @@ function PID.new(min: number, max: number, kp: number, ki: number, kd: number): self._kp = kp self._ki = ki self._kd = kd - self._lastError = 0 -- Store the last error for derivative calculation + self._lastError = 0 -- Store the last error for derivative calculation self._integralSum = 0 -- Store the sum Σ of errors for integral calculation return self end @@ -63,9 +63,9 @@ function PID:Reset() end --[=[ - @param setpoint number -- The desired point to reach - @param processVariable number -- The measured value of the system to compare against the setpoint - @param deltaTime number -- Delta time. This is the time between each PID calculation + @param setpoint number -- The desired point to reach + @param processVariable number -- The measured value of the system to compare against the setpoint + @param deltaTime number -- Delta time. This is the time between each PID calculation @return output: number Calculates the new output based on the setpoint and input. For example,