mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
mc_att_control: don't use auto for primitive types
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user