diff --git a/src/modules/mc_att_control/mc_att_control_main.cpp b/src/modules/mc_att_control/mc_att_control_main.cpp index 1b8d9ecef8a0a34b22b627a0aafb70586e6dce05..8877e4e2ab2e53e85ab155a5093fb9b77602a373 100644 --- a/src/modules/mc_att_control/mc_att_control_main.cpp +++ b/src/modules/mc_att_control/mc_att_control_main.cpp @@ -703,9 +703,9 @@ MulticopterAttitudeControl::run() float dt = (now - last_run) / 1e6f; last_run = now; - /* guard against too small (< 2ms) and too large (> 20ms) dt's */ - if (dt < 0.002f) { - dt = 0.002f; + /* guard against too small (< 0.2ms) and too large (> 20ms) dt's */ + if (dt < 0.0002f) { + dt = 0.0002f; } else if (dt > 0.02f) { dt = 0.02f;