diff --git a/src/modules/mc_att_control/mc_att_control_main.cpp b/src/modules/mc_att_control/mc_att_control_main.cpp index 3855bb6b78..6392da26a7 100644 --- a/src/modules/mc_att_control/mc_att_control_main.cpp +++ b/src/modules/mc_att_control/mc_att_control_main.cpp @@ -329,8 +329,8 @@ MulticopterAttitudeControl::Run() vehicle_rates_setpoint_s v_rates_sp{}; if (_v_rates_sp_sub.copy(&v_rates_sp)) { - const auto yawrate_reference = v_rates_sp.yaw; - rates_sp(2) = yawrate_reference; + const float yawrate_sp = v_rates_sp.yaw; + rates_sp(2) = yawrate_sp; } }