added max pitch parameter for climbout phase

This commit is contained in:
Andreas Antener
2015-11-17 22:28:08 +01:00
committed by Roman
parent 178ec7f4fc
commit 0769ec5345
4 changed files with 28 additions and 3 deletions
@@ -1382,7 +1382,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> &current_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,