diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
commit | 8a08b9dce9cfc161494ddb07a1c979c7796780ff (patch) | |
tree | e86e8a83212c617da44e1b9aed480fe6b50374af /ctrl/pid-controller.vala | |
parent | 626580d3a16d01f3ba5481d291c4c0c844ef4c46 (diff) | |
download | microcopterd-8a08b9dce9cfc161494ddb07a1c979c7796780ff.tar.bz2 |
restructure code
it is now loading its components from plugins
Diffstat (limited to 'ctrl/pid-controller.vala')
-rw-r--r-- | ctrl/pid-controller.vala | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ctrl/pid-controller.vala b/ctrl/pid-controller.vala index e77cda5..5866fe5 100644 --- a/ctrl/pid-controller.vala +++ b/ctrl/pid-controller.vala @@ -27,10 +27,6 @@ public class PID { double integratedError; double windupGuard; - private double constrain(double x, double a, double b) { - return a > x ? a : b < x ? b : x; - } - public double update(double targetPosition, double currentPosition) { /* calculate time delta */ uint64 currentTime = time_t(); |