From 2d43e6caf27fb9ca1cb5633c39d059fce024077e Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Tue, 13 May 2025 17:46:07 +0300 Subject: [PATCH] addressed some review comments Signed-off-by: RomanBapst --- .../fw_mode_manager/ControllerConfigurationHandler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/fw_mode_manager/ControllerConfigurationHandler.hpp b/src/modules/fw_mode_manager/ControllerConfigurationHandler.hpp index 5d7abe5d62..73cfc78e4b 100644 --- a/src/modules/fw_mode_manager/ControllerConfigurationHandler.hpp +++ b/src/modules/fw_mode_manager/ControllerConfigurationHandler.hpp @@ -43,8 +43,8 @@ #include #include -const longitudinal_control_configuration_s empty_longitudinal_control_configuration = {.timestamp = 0, .pitch_min = NAN, .pitch_max = NAN, .throttle_min = NAN, .throttle_max = NAN, .climb_rate_target = NAN, .sink_rate_target = NAN, .speed_weight = NAN, .enforce_low_height_condition = false, .disable_underspeed_protection = false }; -const lateral_control_configuration_s empty_lateral_control_configuration = {.timestamp = 0, .lateral_accel_max = NAN}; +static constexpr longitudinal_control_configuration_s empty_longitudinal_control_configuration = {.timestamp = 0, .pitch_min = NAN, .pitch_max = NAN, .throttle_min = NAN, .throttle_max = NAN, .climb_rate_target = NAN, .sink_rate_target = NAN, .speed_weight = NAN, .enforce_low_height_condition = false, .disable_underspeed_protection = false }; +static constexpr lateral_control_configuration_s empty_lateral_control_configuration = {.timestamp = 0, .lateral_accel_max = NAN}; class CombinedControllerConfigurationHandler