1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-16 08:29:15 +01:00

Now we store the gyro bias avoid quashing the initialization correction.

This commit is contained in:
James Cotton 2011-06-25 10:38:37 -05:00
parent dedbcbfceb
commit 4c0245281d

View File

@ -158,7 +158,10 @@ static void AttitudeTask(void *parameters)
yawBiasRate = 0.23;
init = 0;
} else if (init == 0) {
settingsUpdatedCb(AttitudeSettingsHandle());
// Reload settings (all the rates)
AttitudeSettingsAccelKiGet(&accelKi);
AttitudeSettingsAccelKpGet(&accelKp);
AttitudeSettingsYawBiasRateGet(&yawBiasRate);
init = 1;
}