mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 16:53:33 +08:00
mc_pos_control: jump quicker
In SITL, it still takes a while until a vehicle lifts off, so it seems sensible to raise this jump gain a bit.
This commit is contained in:
@@ -1567,7 +1567,7 @@ MulticopterPositionControl::task_main()
|
|||||||
if (!_takeoff_jumped) {
|
if (!_takeoff_jumped) {
|
||||||
// ramp thrust setpoint up
|
// ramp thrust setpoint up
|
||||||
if (_vel(2) > -(_params.tko_speed / 2.0f)) {
|
if (_vel(2) > -(_params.tko_speed / 2.0f)) {
|
||||||
_takeoff_thrust_sp += 0.5f * dt;
|
_takeoff_thrust_sp += 1.0f * dt;
|
||||||
_vel_sp.zero();
|
_vel_sp.zero();
|
||||||
_vel_prev.zero();
|
_vel_prev.zero();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user