1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Revert "OP-990 zeroed the rollpitch bias rate at startup and incremented at arming."

This reverts commit c0b926a2d5244dc9b64081273f93484ad6d4d281.
This commit is contained in:
Alessio Morale 2013-06-07 18:16:08 +02:00
parent 7e50c00885
commit 3ad123718e

View File

@ -388,14 +388,14 @@ static int32_t updateAttitudeComplementary(bool first_run)
attitudeSettings.AccelKi = 0.0f;
attitudeSettings.YawBiasRate = 0.23f;
accel_filter_enabled = false;
rollPitchBiasRate = 0.0f;
rollPitchBiasRate = 0.01f;
attitudeSettings.MagKp = 1.0f;
} else if ((attitudeSettings.ZeroDuringArming == ATTITUDESETTINGS_ZERODURINGARMING_TRUE) && (flightStatus.Armed == FLIGHTSTATUS_ARMED_ARMING)) {
attitudeSettings.AccelKp = 1.0f;
attitudeSettings.AccelKi = 0.0f;
attitudeSettings.YawBiasRate = 0.23f;
accel_filter_enabled = false;
rollPitchBiasRate = 0.015f;
rollPitchBiasRate = 0.01f;
attitudeSettings.MagKp = 1.0f;
init = 0;
} else if (init == 0) {