From b1d6586d18840ba13345c23d84beaadb0a789279 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sun, 1 Sep 2024 16:52:59 +0100 Subject: [PATCH] Rover: log attitude dt --- Rover/Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rover/Log.cpp b/Rover/Log.cpp index 89a85fdd805949..daabe806aa085b 100644 --- a/Rover/Log.cpp +++ b/Rover/Log.cpp @@ -10,7 +10,7 @@ void Rover::Log_Write_Attitude() float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f; const Vector3f targets(0.0f, desired_pitch_cd, 0.0f); - ahrs.Write_Attitude(targets, AP::scheduler().get_loop_start_time_us()); + ahrs.Write_Attitude(targets, AP::scheduler().get_loop_start_time_us(), AP::scheduler().get_last_loop_time_s()); AP::ahrs().Log_Write();