1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

Decrease zeroing yawBiasRate to reduce noise-induced random yaw drift.

This commit is contained in:
Erik Gustavsson 2012-11-29 18:50:25 +01:00
parent ea1199603b
commit 5132448fe8

View File

@ -218,14 +218,14 @@ static void AttitudeTask(void *parameters)
// For first 7 seconds use accels to get gyro bias // For first 7 seconds use accels to get gyro bias
accelKp = 1; accelKp = 1;
accelKi = 0.9; accelKi = 0.9;
yawBiasRate = 0.23; yawBiasRate = 0.01;
accel_filter_enabled = false; accel_filter_enabled = false;
init = 0; init = 0;
} }
else if (zero_during_arming && (flightStatus.Armed == FLIGHTSTATUS_ARMED_ARMING)) { else if (zero_during_arming && (flightStatus.Armed == FLIGHTSTATUS_ARMED_ARMING)) {
accelKp = 1; accelKp = 1;
accelKi = 0.9; accelKi = 0.9;
yawBiasRate = 0.23; yawBiasRate = 0.01;
accel_filter_enabled = false; accel_filter_enabled = false;
init = 0; init = 0;
} else if (init == 0) { } else if (init == 0) {