diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index b1c6d642676e8e041de60d8708b92d75ba46bc53..55fc8d4d8a8e847475fcf477d83abeefa1ebcda1 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: