mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:43:34 +08:00
speed limitation during auto-takoff: remove from legacy and add to FlightTask
This commit is contained in:
committed by
Lorenz Meier
parent
dcdbdbd8eb
commit
2017e394b3
@@ -130,8 +130,10 @@ void FlightTaskAutoLine::_generateTakeoffSetpoints()
|
||||
_position_setpoint = _target;
|
||||
_velocity_setpoint = Vector3f(NAN, NAN, NAN);
|
||||
|
||||
// set constraints
|
||||
_constraints.speed_up = MPC_TKO_SPEED.get();
|
||||
// limit vertical speed during takeoff
|
||||
_constraints.speed_up = math::gradual(_alt_above_ground, MPC_LAND_ALT2.get(),
|
||||
MPC_LAND_ALT1.get(), MPC_TKO_SPEED.get(), _constraints.speed_up);
|
||||
|
||||
_constraints.landing_gear = vehicle_constraints_s::GEAR_DOWN;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user