diff --git a/px4_ros2_cpp/test/integration/mode_executor.cpp b/px4_ros2_cpp/test/integration/mode_executor.cpp index 277d086..f9c11b0 100644 --- a/px4_ros2_cpp/test/integration/mode_executor.cpp +++ b/px4_ros2_cpp/test/integration/mode_executor.cpp @@ -80,7 +80,7 @@ class ModeExecutorTest : public px4_ros2::ModeExecutorBase { public: ModeExecutorTest(rclcpp::Node & node, FlightModeTest & owned_mode, bool activate_immediately) - : ModeExecutorBase(node, ModeExecutorBase::Settings{Settings::Activation::ActivateImmediately}, + : ModeExecutorBase(node, ModeExecutorBase::Settings{activate_immediately ? Settings::Activation::ActivateImmediately : Settings::Activation::ActivateOnlyWhenArmed}, owned_mode), _node(node) {}