mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
parent
0781fdd813
commit
b7f9ff6747
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user