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

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

This commit is contained in:
Alessio Morale 2013-06-05 22:09:36 +02:00
parent 2656b4505e
commit c0b926a2d5

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.01f;
rollPitchBiasRate = 0.0f;
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.01f;
rollPitchBiasRate = 0.015f;
attitudeSettings.MagKp = 1.0f;
init = 0;
} else if (init == 0) {