From dcd59508bfc6dbbe34f34238ac5287b72b6101b9 Mon Sep 17 00:00:00 2001 From: Maciej Date: Mon, 7 Nov 2022 12:34:38 +0100 Subject: [PATCH] change joint names to macro in micro_ros_cfg.cpp file --- src/{Main.cpp => main.cpp} | 0 src/micro_ros_cfg.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/{Main.cpp => main.cpp} (100%) diff --git a/src/Main.cpp b/src/main.cpp similarity index 100% rename from src/Main.cpp rename to src/main.cpp diff --git a/src/micro_ros_cfg.cpp b/src/micro_ros_cfg.cpp index 478e789..a0345d0 100644 --- a/src/micro_ros_cfg.cpp +++ b/src/micro_ros_cfg.cpp @@ -221,10 +221,10 @@ void MotorsResponseMsgInit(sensor_msgs__msg__JointState * arg_message){ arg_message->header.frame_id.data = frame_id; arg_message->header.frame_id.capacity = arg_message->header.frame_id.size = strlen((const char*)frame_id); msg_name_tab->capacity = msg_name_tab->size = MOT_RESP_MSG_LEN; - msg_name_tab[0].data = (char*)"rr_wheel_joint"; - msg_name_tab[1].data = (char*)"rl_wheel_joint"; - msg_name_tab[2].data = (char*)"fr_wheel_joint"; - msg_name_tab[3].data = (char*)"fl_wheel_joint"; + msg_name_tab[0].data = (char*)REAR_RIGHT_MOTOR_NAME; + msg_name_tab[1].data = (char*)REAR_LEFT_MOTOR_NAME; + msg_name_tab[2].data = (char*)FRONT_RIGHT_MOTOR_NAME; + msg_name_tab[3].data = (char*)FRONT_LEFT_MOTOR_NAME; for(uint8_t i = 0; i < MOT_RESP_MSG_LEN; i++){ msg_name_tab[i].capacity = msg_name_tab[i].size = strlen(msg_name_tab[i].data); }