From 4535b18a80668b93cbd97897ed0d1cfd55b4bd0a Mon Sep 17 00:00:00 2001 From: Jaeyoung-Lim Date: Wed, 13 Oct 2021 18:24:14 +0200 Subject: [PATCH] Set setpoint type as const --- src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp b/src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp index 1463143d1d..d2e6835e47 100644 --- a/src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp +++ b/src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp @@ -763,7 +763,7 @@ FixedwingPositionControl::control_auto(const hrt_abstime &now, const Vector2d &c _att_sp.pitch_reset_integral = false; _att_sp.yaw_reset_integral = false; - uint8_t position_sp_type = handle_setpoint_type(pos_sp_curr.type, pos_sp_curr); + const uint8_t position_sp_type = handle_setpoint_type(pos_sp_curr.type, pos_sp_curr); _type = position_sp_type; // for publication