From d13850c941358f235cf6b590d150bde769427c14 Mon Sep 17 00:00:00 2001 From: "james.goppert" Date: Mon, 6 Dec 2010 11:52:31 +0000 Subject: [PATCH] Added load_gains to PID constructor. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1055 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/PID/PID.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/PID/PID.h b/libraries/PID/PID.h index a6edad05d4..b963e1910e 100644 --- a/libraries/PID/PID.h +++ b/libraries/PID/PID.h @@ -45,7 +45,9 @@ public: _storage(storage), _address(address), _gain_array(&_local_gains[0]) - {} + { + load_gains(); + } /// Constructor /// @@ -58,7 +60,8 @@ public: PID(float *gain_array) : _storage(STORE_OFF), _gain_array(gain_array) - {} + { + } /// Iterate the PID, return the new control value ///