mc_pos_control: delete the unused variable

This commit is contained in:
Huang
2018-01-09 16:10:56 +08:00
committed by Matthias Grob
parent 2cccbee0d5
commit 60eb1c2262

View File

@@ -1665,7 +1665,6 @@ MulticopterPositionControl::vel_sp_slewrate(float dt)
{
matrix::Vector2f vel_sp_xy(_vel_sp(0), _vel_sp(1));
matrix::Vector2f vel_sp_prev_xy(_vel_sp_prev(0), _vel_sp_prev(1));
matrix::Vector2f vel_xy(_vel(0), _vel(1));
matrix::Vector2f acc_xy = (vel_sp_xy - vel_sp_prev_xy) / dt;
/* limit total horizontal acceleration */