mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
removed redundant check as suggested in review
This commit is contained in:
parent
e916902c9e
commit
5bdfad4bdb
@ -277,7 +277,7 @@ static int32_t complementaryFilter(struct data *this, float gyro[3], float accel
|
||||
// wait 4 seconds for the user to get his hands off in case the board was just powered
|
||||
this->timeval = PIOS_DELAY_GetRaw();
|
||||
return 1;
|
||||
} else if (this->init == 0 && PIOS_DELAY_DiffuS(this->starttime) < 10000000 && PIOS_DELAY_DiffuS(this->starttime) >= 4000000) {
|
||||
} else if (this->init == 0 && PIOS_DELAY_DiffuS(this->starttime) < 10000000) {
|
||||
// For first 7 seconds use accels to get gyro bias
|
||||
this->attitudeSettings.AccelKp = 1.0f;
|
||||
this->attitudeSettings.AccelKi = 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user