Shrink the ctor slightly more
git-svn-id: https://arducopter.googlecode.com/svn/trunk@942 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
e699812af4
commit
73eab31d0c
@ -18,8 +18,7 @@ public:
|
|||||||
/// are stored. Zero if the PID does not support
|
/// are stored. Zero if the PID does not support
|
||||||
/// save/restore.
|
/// save/restore.
|
||||||
///
|
///
|
||||||
PID(uint16_t address = 0) :
|
PID(uint16_t address) :
|
||||||
_gain_array(0),
|
|
||||||
_address(address)
|
_address(address)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -31,7 +30,7 @@ public:
|
|||||||
///
|
///
|
||||||
PID(float *gain_array) :
|
PID(float *gain_array) :
|
||||||
_gain_array(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
|
/// Iterate the PID, return the new control value
|
||||||
|
Loading…
Reference in New Issue
Block a user