mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 07:11:35 +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:
co-authored by
Mathieu Bresciani
parent
0781fdd813
commit
b7f9ff6747
@@ -329,8 +329,8 @@ MulticopterAttitudeControl::Run()
|
|||||||
vehicle_rates_setpoint_s v_rates_sp{};
|
vehicle_rates_setpoint_s v_rates_sp{};
|
||||||
|
|
||||||
if (_v_rates_sp_sub.copy(&v_rates_sp)) {
|
if (_v_rates_sp_sub.copy(&v_rates_sp)) {
|
||||||
const auto yawrate_reference = v_rates_sp.yaw;
|
const float yawrate_sp = v_rates_sp.yaw;
|
||||||
rates_sp(2) = yawrate_reference;
|
rates_sp(2) = yawrate_sp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user