Skip to content

Commit 5ec73ec

Browse files
author
Divyansh Agrawal
committed
Added the Active Disturbance Rejection Control (ADRC) Algorithm
1 parent 9934f06 commit 5ec73ec

File tree

2 files changed

+0
-1
lines changed

2 files changed

+0
-1
lines changed

control_algorithms/__init__.py

Whitespace-only changes.

control_algorithms/adrc.py

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def compute(self, measured_value: float, dt: float) -> float:
3939
:param dt: Time difference since the last update
4040
:return: Control output
4141
"""
42-
error = self.setpoint - measured_value
4342

4443
# Extended State Observer (ESO) Update
4544
self.z1 += dt * (self.z2 - self.beta1 * (self.z1 - measured_value))

0 commit comments

Comments
 (0)