From 73eab31d0cbcb75a32c4565a443ea61b9e8fdc25 Mon Sep 17 00:00:00 2001 From: "DrZiplok@gmail.com" Date: Sat, 27 Nov 2010 00:58:01 +0000 Subject: [PATCH] Shrink the ctor slightly more git-svn-id: https://arducopter.googlecode.com/svn/trunk@942 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/PID/PID.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/PID/PID.h b/libraries/PID/PID.h index 1fcd1b93da..a25082cd1b 100644 --- a/libraries/PID/PID.h +++ b/libraries/PID/PID.h @@ -18,8 +18,7 @@ public: /// are stored. Zero if the PID does not support /// save/restore. /// - PID(uint16_t address = 0) : - _gain_array(0), + PID(uint16_t address) : _address(address) {} @@ -31,7 +30,7 @@ public: /// PID(float *gain_array) : _gain_array(gain_array), - _address(0) + _address(0) // must init address to zero to have gain_array respected {} /// Iterate the PID, return the new control value