mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 10:23:34 +08:00
mc_pos_control: use 0.5 of acceleration for auto
This commit is contained in:
committed by
Lorenz Meier
parent
807d45c99c
commit
3538f028b4
@@ -1552,7 +1552,7 @@ void MulticopterPositionControl::control_auto(float dt)
|
||||
/* we want to accelerate */
|
||||
|
||||
float acc_z = (vel_sp_z - fabsf(_vel_sp(2))) / dt;
|
||||
float acc_max = (flying_upward) ? _acceleration_z_max_up.get() : _acceleration_z_max_down.get();
|
||||
float acc_max = (flying_upward) ? (_acceleration_z_max_up.get() * 0.5f) : (_acceleration_z_max_down.get() * 0.5f);
|
||||
|
||||
if (acc_z > acc_max) {
|
||||
vel_sp_z = _acceleration_z_max_up.get() * dt + fabsf(_vel_sp(2));
|
||||
|
||||
Reference in New Issue
Block a user