mc_att_control: don't use auto for primitive types

Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
This commit is contained in:
Daniel Agar 2020-08-10 10:09:00 -04:00
parent 0781fdd813
commit b7f9ff6747
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}