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

OP-925 Changed dT to comply with revo sensor rate

+review OPReview-484
This commit is contained in:
Alessio Morale 2013-05-27 21:05:39 +02:00
parent c40976c260
commit a286a20cb0

View File

@ -1185,7 +1185,7 @@ static void settingsUpdatedCb(UAVObjEvent *ev)
AttitudeSettingsGet(&attitudeSettings);
// Calculate accel filter alpha, in the same way as for gyro data in stabilization module.
const float fakeDt = 0.0025f;
const float fakeDt = 0.0015f;
if (attitudeSettings.AccelTau < 0.0001f) {
accel_alpha = 0; // not trusting this to resolve to 0
accel_filter_enabled = false;