From 2a68639632da50ec5a7e0323e018cefef77609da Mon Sep 17 00:00:00 2001 From: Emran Billah Date: Sun, 28 Apr 2024 13:51:21 -0300 Subject: [PATCH] Fixing error related to unreferenced stime. Replacing with ctime resolves build issues, but might pose challenges down the road. Point to note, if things start looking weird --- src/roscontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index 7e9e546..cd2c371 100644 --- a/src/roscontroller.cpp +++ b/src/roscontroller.cpp @@ -743,7 +743,7 @@ with size......... | / uint16_t tmphead[4]; tmphead[1] = (uint16_t)message_number; // uint32_t stime = (uint32_t)(ros::Time::now().toSec()); //(uint32_t)(logical_clock.toSec() * 100000); - memcpy((void*)(tmphead + 2), (void*)&stime, sizeof(uint32_t)); + memcpy((void*)(tmphead + 2), (void*)&ctime, sizeof(uint32_t)); uint64_t rheader[1]; rheader[0] = 0; payload_out.sysid = (uint8_t)robot_id;