Merge branch 'release_v1.0.0' of github.com:PX4/Firmware

This commit is contained in:
Lorenz Meier
2015-07-02 01:00:06 +02:00
9 changed files with 91 additions and 43 deletions
@@ -1417,7 +1417,11 @@ MulticopterPositionControl::task_main()
/* control throttle directly if no climb rate controller is active */
if (!_control_mode.flag_control_climb_rate_enabled) {
_att_sp.thrust = math::min(_manual.z, _params.thr_max);
_att_sp.thrust = math::max(_att_sp.thrust, _params.thr_min);
/* enforce minimum throttle if not landed */
if (!_vehicle_status.condition_landed) {
_att_sp.thrust = math::max(_att_sp.thrust, _params.thr_min);
}
}
/* construct attitude setpoint rotation matrix */