1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-990 Change initial delay before calibration to 4 seconds to allow to put the craft on the ground after battery connection

+review OPReview-505
This commit is contained in:
Alessio Morale 2013-06-08 23:18:22 +02:00
parent 7a6b5c5681
commit 59eaf01089

View File

@ -392,7 +392,7 @@ static int32_t updateAttitudeComplementary(bool first_run)
return 0;
}
if ((xTaskGetTickCount() < 7000) && (xTaskGetTickCount() > 1000)) {
if ((xTaskGetTickCount() < 10000) && (xTaskGetTickCount() > 4000)) {
// For first 7 seconds use accels to get gyro bias
attitudeSettings.AccelKp = 1.0f;
attitudeSettings.AccelKi = 0.0f;