mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AC_PosControl: explicitly set set_alt_target_from_climb_rate params
This commit is contained in:
parent
ee3ba48097
commit
382f5d087f
@ -662,7 +662,7 @@ void AC_PosControl::update_vel_controller_xyz(float ekfNavVelGainScaler)
|
||||
accel_to_lean_angles(dt, ekfNavVelGainScaler);
|
||||
|
||||
// update altitude target
|
||||
set_alt_target_from_climb_rate(_vel_desired.z, dt);
|
||||
set_alt_target_from_climb_rate(_vel_desired.z, dt, false);
|
||||
|
||||
// run z-axis position controller
|
||||
update_z_controller();
|
||||
|
Loading…
Reference in New Issue
Block a user