mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 14:53:34 +08:00
mc_pos_control: delete the unused variable
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user