From 17a1beeeae647a6fbd0904a5d794ce7754df7eb2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 27 Aug 2018 16:37:59 +0530 Subject: set the initial value of exprs --- js/Linear/PID.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/Linear/PID.js') diff --git a/js/Linear/PID.js b/js/Linear/PID.js index 46ab9ee4..8c346451 100644 --- a/js/Linear/PID.js +++ b/js/Linear/PID.js @@ -90,6 +90,7 @@ function PID() { this.p = arguments[0]["p"]; this.i = arguments[0]["i"]; this.d = arguments[0]["d"]; + var exprs0 = [arguments[0]["p"], arguments[0]["i"], arguments[0]["d"]]; if (!ok) { break; } -- cgit