mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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_xy(_vel_sp(0), _vel_sp(1));
|
||||||
matrix::Vector2f vel_sp_prev_xy(_vel_sp_prev(0), _vel_sp_prev(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;
|
matrix::Vector2f acc_xy = (vel_sp_xy - vel_sp_prev_xy) / dt;
|
||||||
|
|
||||||
/* limit total horizontal acceleration */
|
/* limit total horizontal acceleration */
|
||||||
|
|||||||
Reference in New Issue
Block a user