Skip to content

Commit

Permalink
mc_att_control: don't use auto for primitive types
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Bresciani <[email protected]>
  • Loading branch information
dagar and bresch committed Aug 10, 2020
1 parent 0781fdd commit b7f9ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/mc_att_control/mc_att_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit b7f9ff6

Please sign in to comment.