From b6d5b1e5970ae7f5d50034da284a6376bc4da9cc Mon Sep 17 00:00:00 2001 From: David Date: Sun, 30 Nov 2025 15:52:41 -0600 Subject: [PATCH] feat: (latency_tester) parameterize mcu_name ik this is not related to arm stfu this is the everything branch now --- src/astra_descriptions | 2 +- src/latency_tester/src/embedded_ping.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/astra_descriptions b/src/astra_descriptions index 2481b22..3e6cf87 160000 --- a/src/astra_descriptions +++ b/src/astra_descriptions @@ -1 +1 @@ -Subproject commit 2481b2296965f6a479c92211a121dcaf00a6c787 +Subproject commit 3e6cf87393bba6b1dec78bebe584866aff5bf731 diff --git a/src/latency_tester/src/embedded_ping.cpp b/src/latency_tester/src/embedded_ping.cpp index 37c301f..d1efc04 100644 --- a/src/latency_tester/src/embedded_ping.cpp +++ b/src/latency_tester/src/embedded_ping.cpp @@ -26,7 +26,7 @@ class LatencyTester : public rclcpp::Node { public: LatencyTester() - : Node("latency_tester"), count_(0), target_mcu_("core") + : Node("latency_tester"), count_(0) { publisher_ = this->create_publisher("/anchor/relay", 10); timer_ = this->create_wall_timer( @@ -35,6 +35,8 @@ public: "/anchor/debug", 10, std::bind(&LatencyTester::response_callback, this, std::placeholders::_1)); + + target_mcu_ = this->declare_parameter("target_mcu", "core"); } private: