From c91415eba97c1044c0540d0fdf085060bf61dce3 Mon Sep 17 00:00:00 2001 From: Yu Asabe Date: Thu, 20 Jan 2022 19:39:51 +0900 Subject: [PATCH] Update T_R1R2 logging --- src/cpm_application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cpm_application.cpp b/src/cpm_application.cpp index a94b004..e0e4e04 100644 --- a/src/cpm_application.cpp +++ b/src/cpm_application.cpp @@ -87,7 +87,10 @@ namespace v2x const auto time_now = duration_cast (runtime_.now().time_since_epoch()); uint16_t gdt = time_now.count(); int gdt_diff = (65536 + (gdt - gdt_cpm) % 65536) % 65536; - RCLCPP_INFO(node_->get_logger(), "[indicate] gdt: %ld,%u,%d", gdt_cpm, gdt, gdt_diff); + RCLCPP_INFO(node_->get_logger(), "[CpmApplication::indicate] [measure] GDT_CPM: %ld", gdt_cpm); + RCLCPP_INFO(node_->get_logger(), "[CpmApplication::indicate] [measure] GDT: %u", gdt); + RCLCPP_INFO(node_->get_logger(), "[CpmApplication::indicate] [measure] T_R1R2: %d", gdt_diff); + CpmManagementContainer_t &management = message->cpm.cpmParameters.managementContainer; double lat = management.referencePosition.latitude / 1.0e7;