From ed2b615abe7536fa65a7e273b3c84c189f2ca2b2 Mon Sep 17 00:00:00 2001 From: GuillaumeLaine Date: Mon, 13 May 2024 09:09:55 +0200 Subject: [PATCH] review: apply suggestions --- px4_ros2_cpp/src/components/mode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/px4_ros2_cpp/src/components/mode.cpp b/px4_ros2_cpp/src/components/mode.cpp index 4840ace..6e2a258 100644 --- a/px4_ros2_cpp/src/components/mode.cpp +++ b/px4_ros2_cpp/src/components/mode.cpp @@ -229,6 +229,7 @@ bool ModeBase::onRegistered() activateSetpointType(*_setpoint_types[0]); if (_setpoint_update_rate_hz < FLT_EPSILON) { + // Do not use default setpoint rate if rate was already set by user setSetpointUpdateRateFromSetpointTypes(); }