From 4f579073d7a4cf93a3717a4c2010e61ad7b185ef Mon Sep 17 00:00:00 2001 From: lm Date: Tue, 11 May 2010 17:58:00 +0200 Subject: [PATCH] Minor timestamp adjustment --- src/uas/UAS.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index b1c6d6426..55fc8d4d8 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -278,12 +278,13 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) { mavlink_vision_position_estimate_t pos; mavlink_msg_vision_position_estimate_decode(&message, &pos); - emit valueChanged(uasId, "vis. roll", pos.roll, pos.usec); - emit valueChanged(uasId, "vis. pitch", pos.pitch, pos.usec); - emit valueChanged(uasId, "vis. yaw", pos.yaw, pos.usec); - emit valueChanged(uasId, "vis. x", pos.x, pos.usec); - emit valueChanged(uasId, "vis. y", pos.y, pos.usec); - emit valueChanged(uasId, "vis. z", pos.z, pos.usec); + quint64 time = getUnixTime(pos.usec); + emit valueChanged(uasId, "vis. roll", pos.roll, time); + emit valueChanged(uasId, "vis. pitch", pos.pitch, time); + emit valueChanged(uasId, "vis. yaw", pos.yaw, time); + emit valueChanged(uasId, "vis. x", pos.x, time); + emit valueChanged(uasId, "vis. y", pos.y, time); + emit valueChanged(uasId, "vis. z", pos.z, time); } break; case MAVLINK_MSG_ID_POSITION: -- 2.22.0