Skip to content

Commit

Permalink
Emergency pid class fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ksiegall committed Aug 16, 2023
1 parent 54cf711 commit 4e1e3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XRPLib/pid.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def update(self, error: float) -> float:
derivative = (error - self.prev_error) / timestep

# derive output
output = self.kp * error + self.ki * integral - self.kd * derivative
output = self.kp * error + self.ki * integral + self.kd * derivative
self.prev_error = error
self.prev_integral = integral

Expand Down

0 comments on commit 4e1e3c8

Please sign in to comment.