mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
LP-76 fix drops out of sky in AutoTune mode
This commit is contained in:
parent
aa06b1793f
commit
d8e07b090e
@ -343,7 +343,7 @@ static void stabilizationInnerloopTask()
|
|||||||
case STABILIZATIONSTATUS_INNERLOOP_SYSTEMIDENT:
|
case STABILIZATIONSTATUS_INNERLOOP_SYSTEMIDENT:
|
||||||
{
|
{
|
||||||
static int8_t identIteration = 0;
|
static int8_t identIteration = 0;
|
||||||
float identOffsets[3];
|
static float identOffsets[3] = { 0 };
|
||||||
|
|
||||||
if (PIOS_DELAY_DiffuS(systemIdentTimeVal) / 1000.0f > SYSTEM_IDENT_PERIOD) {
|
if (PIOS_DELAY_DiffuS(systemIdentTimeVal) / 1000.0f > SYSTEM_IDENT_PERIOD) {
|
||||||
const float SCALE_BIAS = 7.1f;
|
const float SCALE_BIAS = 7.1f;
|
||||||
|
Loading…
Reference in New Issue
Block a user