From 1560364c04aef5ab5b040ecb827c1d0904ae0ac3 Mon Sep 17 00:00:00 2001 From: bazooka joe <bazookajoe1900@gmail.com> Date: Thu, 27 Dec 2018 17:36:38 +0200 Subject: [PATCH] fix home position timestamp to be the timestamp that the home was set and not when the message was sent --- src/modules/mavlink/mavlink_messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index 7fa642696c..62b399f954 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -2688,7 +2688,7 @@ protected: msg.approach_y = 0.0f; msg.approach_z = 0.0f; - msg.time_usec = hrt_absolute_time(); + msg.time_usec = home.timestamp; mavlink_msg_home_position_send_struct(_mavlink->get_channel(), &msg); -- GitLab