From af85ec6c26dcace2f03ec23496d248d237d24937 Mon Sep 17 00:00:00 2001 From: Jaeyoung Lim Date: Thu, 8 Aug 2024 10:16:43 +0200 Subject: [PATCH] Update src/modules/fw_att_control/FixedwingAttitudeControl.cpp Co-authored-by: Silvan Fuhrer --- src/modules/fw_att_control/FixedwingAttitudeControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fw_att_control/FixedwingAttitudeControl.cpp b/src/modules/fw_att_control/FixedwingAttitudeControl.cpp index cab355695188..5cb0e9fad117 100644 --- a/src/modules/fw_att_control/FixedwingAttitudeControl.cpp +++ b/src/modules/fw_att_control/FixedwingAttitudeControl.cpp @@ -324,7 +324,7 @@ void FixedwingAttitudeControl::Run() /* Run attitude controllers */ if (_vcontrol_mode.flag_control_attitude_enabled && _in_fw_or_transition_wo_tailsitter_transition) { - Eulerf setpoint(Quatf(_att_sp.q_d)); + const Eulerf setpoint(Quatf(_att_sp.q_d)); float roll_body = setpoint.phi(); float pitch_body = setpoint.theta();