From 0027a13e100a47086ff6c290312ed01964cb8849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Wed, 15 Nov 2023 16:23:40 +0100 Subject: [PATCH] Make the domain id be controlled by uros agent --- Inc/firmware/configuration.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Inc/firmware/configuration.hpp b/Inc/firmware/configuration.hpp index e2b1c74..acd3fdb 100644 --- a/Inc/firmware/configuration.hpp +++ b/Inc/firmware/configuration.hpp @@ -17,7 +17,8 @@ constexpr uint32_t UROS_HEAP_SIZE = 30000; static constexpr UART_HandleTypeDef& UROS_UART = huart1; // Domain ID used for ROS communication -constexpr size_t ROS_DOMAIN_ID = 0; +// When set to 255 it is automatically overridden by the uROS agent +constexpr size_t ROS_DOMAIN_ID = 255; // Name of the ROS node constexpr const char* ROS_NODE_NAME = "firmware";