mirror of https://github.com/ArduPilot/ardupilot
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:
parent
9c9fd95408
commit
d13850c941
|
@ -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
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue