mavlink_receiver: set timestamp to gps_inject_data_topic

This commit is contained in:
Beat Küng 2022-05-30 07:55:20 +02:00 committed by Daniel Agar
parent c95192d050
commit fcadc69e52
1 changed files with 1 additions and 0 deletions

View File

@ -2742,6 +2742,7 @@ MavlinkReceiver::handle_message_gps_rtcm_data(mavlink_message_t *msg)
memcpy(gps_inject_data_topic.data, gps_rtcm_data_msg.data,
math::min((int)sizeof(gps_inject_data_topic.data), (int)sizeof(uint8_t) * gps_inject_data_topic.len));
gps_inject_data_topic.timestamp = hrt_absolute_time();
_gps_inject_data_pub.publish(gps_inject_data_topic);
}