5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-02-12 19:03:58 -04:00

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:
DrZiplok@gmail.com 2010-11-27 00:58:01 +00:00
parent e699812af4
commit 73eab31d0c

View File

@ -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