mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 18:13:38 +08:00
added max pitch parameter for climbout phase
This commit is contained in:
@@ -1382,7 +1382,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
_mavlink_fd);
|
||||
|
||||
// update tecs
|
||||
float takeoff_pitch_max_deg = _parameters.pitch_limit_max;
|
||||
float takeoff_pitch_max_deg = _runway_takeoff.getMaxPitch(_parameters.pitch_limit_max);
|
||||
float takeoff_pitch_max_rad = math::radians(takeoff_pitch_max_deg);
|
||||
|
||||
tecs_update_pitch_throttle(_pos_sp_triplet.current.alt,
|
||||
|
||||
Reference in New Issue
Block a user