Added load_gains to PID constructor.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1055 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
james.goppert 2010-12-06 11:52:31 +00:00
parent 9c9fd95408
commit d13850c941
1 changed files with 5 additions and 2 deletions

View File

@ -45,7 +45,9 @@ public:
_storage(storage), _storage(storage),
_address(address), _address(address),
_gain_array(&_local_gains[0]) _gain_array(&_local_gains[0])
{} {
load_gains();
}
/// Constructor /// Constructor
/// ///
@ -58,7 +60,8 @@ public:
PID(float *gain_array) : PID(float *gain_array) :
_storage(STORE_OFF), _storage(STORE_OFF),
_gain_array(gain_array) _gain_array(gain_array)
{} {
}
/// Iterate the PID, return the new control value /// Iterate the PID, return the new control value
/// ///