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

This commit is contained in:
Emran Billah 2024-04-28 13:51:21 -03:00
parent ce38cb6b1d
commit 2a68639632
1 changed files with 1 additions and 1 deletions

View File

@ -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;