Skip to content

Commit

Permalink
Stylua fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SigmaThetaTech committed Feb 6, 2024
1 parent 37abf34 commit 661bfc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/pid/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 661bfc4

Please sign in to comment.