From e0de4bccdf1ec3d09dffd29c1fe62de9d494bf64 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 10 Feb 2018 12:20:17 +1100 Subject: [PATCH] Copter: use filtered loop time --- ArduCopter/ArduCopter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/ArduCopter.cpp b/ArduCopter/ArduCopter.cpp index 57f4d7b808..0016c8aa3e 100644 --- a/ArduCopter/ArduCopter.cpp +++ b/ArduCopter/ArduCopter.cpp @@ -198,7 +198,7 @@ void Copter::perf_update(void) void Copter::loop() { scheduler.loop(); - G_Dt = scheduler.last_loop_time; + G_Dt = scheduler.get_filtered_loop_time(); }