mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 02:01:35 +08:00
TECS: Fix manual climbout
This commit is contained in:
@@ -1502,7 +1502,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
|||||||
throttle_max,
|
throttle_max,
|
||||||
_parameters.throttle_cruise,
|
_parameters.throttle_cruise,
|
||||||
climbout_requested,
|
climbout_requested,
|
||||||
pitch_limit_min,
|
((climbout_requested) ? math::radians(10.0f) : pitch_limit_min),
|
||||||
_global_pos.alt,
|
_global_pos.alt,
|
||||||
ground_speed,
|
ground_speed,
|
||||||
tecs_status_s::TECS_MODE_NORMAL);
|
tecs_status_s::TECS_MODE_NORMAL);
|
||||||
@@ -1612,7 +1612,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
|||||||
throttle_max,
|
throttle_max,
|
||||||
_parameters.throttle_cruise,
|
_parameters.throttle_cruise,
|
||||||
climbout_requested,
|
climbout_requested,
|
||||||
pitch_limit_min,
|
((climbout_requested) ? math::radians(10.0f) : pitch_limit_min),
|
||||||
_global_pos.alt,
|
_global_pos.alt,
|
||||||
ground_speed,
|
ground_speed,
|
||||||
tecs_status_s::TECS_MODE_NORMAL);
|
tecs_status_s::TECS_MODE_NORMAL);
|
||||||
|
|||||||
Reference in New Issue
Block a user